Commit b14ab77a authored by Alain Takoudjou's avatar Alain Takoudjou

Fix path not found issue 2

parent 2733aa62
......@@ -199,7 +199,7 @@ $(document).ready(function () {
});
}
else {
$("#noServices").show();
logfilelist = "";
}
});
}
......@@ -273,9 +273,15 @@ $(document).ready(function () {
else{
$("#error").Popup("No log file selected!", {type: 'alert', duration: 3000});
}
return false;
});
$("#logEdit").click(function () {
if ( logfilelist === "" ) {
$("#error").Popup("You don't have any services yet! Please run your services to choose custom log files",
{type: 'alert', duration: 5000});
return false;
}
if ( $(this).text() === "Save list") {
$(this).text("Edit list");
$("#addbox").hide();
......@@ -323,6 +329,7 @@ $(document).ready(function () {
});
});
}
return false;
});
$("#slapswitch").click( function () {
......@@ -332,6 +339,7 @@ $(document).ready(function () {
else {
$("#softrun").click();
}
return false;
});
});
......@@ -84,9 +84,6 @@
<div id='inline_content' style='padding:10px; background:#fff;'>
<div style='border: solid 1px #678dad; height: 300px; overflow: auto;'>
<div id="fileTree"></div>
<div id="noServices" style='display:none'>
<h2>You don't have any services yet! Please run your services to choose custom log files</h2>
</div>
</div>
<input type=submit value="Add file" id="addfile" class="button">
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment