a1e45d5e9c
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1519 2a923420-c742-0410-a762-8d5b09965624
31 lines
533 B
Plaintext
Executable File
31 lines
533 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
if {[file exists /mod/tmp/notify.log]} {
|
|
|
|
source /mod/webif/lib/setup
|
|
require cat
|
|
|
|
puts "
|
|
<div id=sysnotify class=warningbox><center>
|
|
!! WARNING !!
|
|
<br><br>
|
|
You have pending system notifications:
|
|
<br><br>
|
|
<pre>
|
|
"
|
|
cat /mod/tmp/notify.log
|
|
puts {
|
|
</pre>
|
|
<button id=sysnotify_ack>Acknowledge</button>
|
|
</center></div>
|
|
<script type=text/javascript>
|
|
$('#sysnotify_ack').button().on('click', function() {
|
|
$('#sysnotify').slideUp('slow');
|
|
$.get('/diag/clearlog.jim?file=/mod/tmp/notify.log&unlink=1');
|
|
});
|
|
</script>
|
|
}
|
|
|
|
}
|
|
|