Commit 2976d8f7 authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Nicolas Wavrant

Fix path not found issue 2

parent 190ec815
...@@ -199,7 +199,7 @@ $(document).ready(function () { ...@@ -199,7 +199,7 @@ $(document).ready(function () {
}); });
} }
else { else {
$("#noServices").show(); logfilelist = "";
} }
}); });
} }
...@@ -273,9 +273,15 @@ $(document).ready(function () { ...@@ -273,9 +273,15 @@ $(document).ready(function () {
else{ else{
$("#error").Popup("No log file selected!", {type: 'alert', duration: 3000}); $("#error").Popup("No log file selected!", {type: 'alert', duration: 3000});
} }
return false;
}); });
$("#logEdit").click(function () { $("#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") { if ( $(this).text() === "Save list") {
$(this).text("Edit list"); $(this).text("Edit list");
$("#addbox").hide(); $("#addbox").hide();
...@@ -323,6 +329,7 @@ $(document).ready(function () { ...@@ -323,6 +329,7 @@ $(document).ready(function () {
}); });
}); });
} }
return false;
}); });
$("#slapswitch").click( function () { $("#slapswitch").click( function () {
...@@ -332,6 +339,7 @@ $(document).ready(function () { ...@@ -332,6 +339,7 @@ $(document).ready(function () {
else { else {
$("#softrun").click(); $("#softrun").click();
} }
return false;
}); });
}); });
...@@ -84,9 +84,6 @@ ...@@ -84,9 +84,6 @@
<div id='inline_content' style='padding:10px; background:#fff;'> <div id='inline_content' style='padding:10px; background:#fff;'>
<div style='border: solid 1px #678dad; height: 300px; overflow: auto;'> <div style='border: solid 1px #678dad; height: 300px; overflow: auto;'>
<div id="fileTree"></div> <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> </div>
<input type=submit value="Add file" id="addfile" class="button"> <input type=submit value="Add file" id="addfile" class="button">
</div> </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