-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleantalk-admin.js
41 lines (40 loc) · 1.17 KB
/
cleantalk-admin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
var ct_adv_settings=null;
var ct_adv_settings_title=null;
var ct_adv_settings_show=false;
jQuery(document).ready(function(){
var d = new Date();
var n = d.getTimezoneOffset();
var data = {
'action': 'ajax_get_timezone',
'security': ajax_nonce,
'offset': n
};
jQuery.ajax({
type: "POST",
url: ajaxurl,
data: data,
success: function(msg){
//
}
});
ct_adv_settings=jQuery('#cleantalk_registrations_test1').parent().parent().parent().parent();
ct_adv_settings.hide();
ct_adv_settings_title=ct_adv_settings.prev();
ct_adv_settings.wrap("<div id='ct_advsettings_hide'>");
ct_adv_settings_title.append(" <span id='ct_adv_showhide' style='cursor:pointer'><b><a href='#' style='text-decoration:none;'>+</a></b></span>");
ct_adv_settings_title.css('cursor','pointer');
ct_adv_settings_title.click(function(){
if(ct_adv_settings_show)
{
ct_adv_settings.hide();
ct_adv_settings_show=false;
jQuery('#ct_adv_showhide').html("<b><a href='#' style='text-decoration:none;'>+</a></b>");
}
else
{
ct_adv_settings.show();
ct_adv_settings_show=true;
jQuery('#ct_adv_showhide').html("<b><a href='#' style='text-decoration:none;'>-</a></b>");
}
});
});