forked from hummypkg/webif
97289969f1
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1781 2a923420-c742-0410-a762-8d5b09965624
33 lines
573 B
Plaintext
Executable File
33 lines
573 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 style=\"width: 90%\"><center>
|
|
!! WARNING !!
|
|
<br><br>
|
|
You have pending system notifications:
|
|
<br><br>
|
|
</center>
|
|
<pre>
|
|
"
|
|
cat /mod/tmp/notify.log
|
|
puts {
|
|
</pre>
|
|
<center>
|
|
<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>
|
|
}
|
|
|
|
}
|
|
|