Dotclear

Changeset 1040:c39391d78a5d for plugins


Ignore:
Timestamp:
11/27/12 07:50:16 (13 years ago)
Author:
JcDenis
Branch:
default
Message:

Add confirm dialog on spam deletion, addresses #903

Location:
plugins/antispam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/antispam.js

    r0 r1040  
    33     $("#filters-list").each(function() { 
    44          dragsort.makeTableSortable(this,dotclear.sortable.setHandle, dotclear.sortable.saveOrder); 
     5     }); 
     6     $('form input[type=submit][name=delete_all]').click(function(){ 
     7          return window.confirm(dotclear.msg.confirm_spam_delete); 
    58     }); 
    69}); 
  • plugins/antispam/index.php

    r907 r1040  
    100100<head> 
    101101  <title><?php echo ($filter_gui !== false ? sprintf(__('%s configuration'),$filter->name).' - ' : '').$page_name; ?></title> 
     102  <script type="text/javascript"> 
     103  //<![CDATA[ 
     104  <?php 
     105  echo dcPage::jsVar('dotclear.msg.confirm_spam_delete',__('Are you sure you want to delete all spams?')); 
     106  ?> 
     107  //]]> 
     108  </script> 
    102109  <?php 
    103110  echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map