PluginProbe
Banhammer – Monitor Site Traffic, Block Bad Users and Bots / 2.2
Banhammer – Monitor Site Traffic, Block Bad Users and Bots v2.2
3.5.3 trunk 1.1 1.2 1.3 1.4 1.5 1.5.1 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.8.1 2.8.2 2.9 3.0 All 43 releases
banhammer / js / settings.js

settings.js in Banhammer – Monitor Site Traffic, Block Bad Users and Bots 2.2, at js/settings.js

21 lines 614 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Banhammer Settings */
2
3 jQuery(document).ready(function($){
4
5 $('.banhammer-reset-options').on('click', function(e){
6 e.preventDefault();
7 $('.banhammer-dialog').dialog('destroy');
8 var link = this;
9 var button_names = {};
10 button_names[banhammer_alert_options_true] = function() { window.location = link.href; }
11 button_names[banhammer_alert_options_false] = function() { $(this).dialog('close'); }
12 $('<div class="banhammer-dialog">'+ banhammer_alert_options_message +'</div>').dialog({
13 title: banhammer_alert_options_title,
14 buttons: button_names,
15 modal: true,
16 width: 350
17 });
18 });
19
20 });
21