| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/bb-plugin/js/ |
Upload File : |
(function( $ ) {
/**
* Enable/Disable usage stats helper.
*
* @since 2.1
*/
var FLBuilderUsage = {
init: function() {
FLBuilderUsage._fadeToggle()
FLBuilderUsage._enableClick()
FLBuilderUsage._disableClick()
},
_fadeToggle: function() {
$( 'a.stats-info' ).click( function( e ) {
e.preventDefault();
$( '.stats-info-data' ).fadeToggle()
})
},
_enableClick: function() {
$( '.buttons span.enable-stats' ).click( function( e ) {
nonce = $(this).closest('.buttons').find('#_wpnonce').val()
data = {
'action' : 'fl_usage_toggle',
'enable' : 1,
'_wpnonce': nonce
}
FLBuilderUsage._doAjax( data )
})
},
_disableClick: function() {
$( '.buttons span.disable-stats' ).click( function( e ) {
nonce = $(this).closest('.buttons').find('#_wpnonce').val()
data = {
'action' : 'fl_usage_toggle',
'enable' : 0,
'_wpnonce': nonce
}
FLBuilderUsage._doAjax( data )
})
},
_doAjax: function( data ) {
$.post(ajaxurl, data, function(response) {
FLBuilderUsage._close()
});
},
_close: function() {
$( '.fl-usage').closest('.notice').fadeToggle()
}
};
$( function() {
FLBuilderUsage.init();
});
})( jQuery );