Skip to content

Commit fb41c36

Browse files
authored
Merge pull request #66 from proditis/master
this should be oked for issue #64
2 parents 75c0cc4 + 995008a commit fb41c36

File tree

1 file changed

+9
-1
lines changed
  • htdocs/protected/modules/syslog/views/logs

1 file changed

+9
-1
lines changed

htdocs/protected/modules/syslog/views/logs/admin.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@
2020
return false;
2121
});
2222
$('body').on('click','#massackfilter',function(){
23+
nonempty=0;
24+
$('table tr.filters :input').each(function(key,value) {
25+
if(value.value!='')
26+
nonempty++;
27+
});
28+
if(nonempty==0 && !confirm('Are you sure you want to acknowledge with empty filters?'))
29+
{
30+
return false;
31+
}
2332
data=$( 'table :input' ).serialize();
2433
lnk=$(this).attr('href');
2534
$.post(lnk,data,function(resp){ $.fn.yiiGridView.update('syslog-grid');window.location.href=resp;});
26-
//
2735
return false;
2836
});
2937
" );

0 commit comments

Comments
 (0)