PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/rfstoolsupply.com/wp-content/plugins/woozone/modules/cronjobs/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/rfstoolsupply.com/wp-content/plugins/woozone/modules/cronjobs/app.cronjobs.js |
/* Document : Cronjobs Author : Andrei Dinca, AA-Team http://codecanyon.net/user/AA-Team */ // Initialization and events code for the app WooZoneCronjobs = (function($) { "use strict"; // public var debug_level = 0; var maincontainer = null; var loading = null; var loaded_page = 0; var mainsync = null; var synctable = null; function aateam_tooltip() { WooZone.aateam_tooltip(); } // init function, autoload (function init() { // load the triggers $(document).ready(function() { maincontainer = $(".WooZone-main"); loading = maincontainer.find("#WooZone-main-loading"); mainsync = maincontainer.find("form#WooZone_cronjobs"); synctable = mainsync.find('#WooZone-cj-table'); triggers(); }); })(); // reload cronjobs list function load_cronjobs( callback ) { var data = []; loading.show(); data.push({name: 'action', value: 'WooZone_cronjobs'}); data.push({name: 'subaction', value: 'load_cronjobs'}); data.push({name: 'debug_level', value: debug_level}); data = $.param( data ); // turn the result into a query string // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { if( response.status == 'valid' ){ synctable.find('> tbody').html( response.html ); } aateam_tooltip(); loading.hide(); }, 'json'); } // reinit cronjobs list function reinit_cronjobs( callback ) { var data = []; loading.show(); data.push({name: 'action', value: 'WooZone_cronjobs'}); data.push({name: 'subaction', value: 'reinit_cronjobs'}); data.push({name: 'debug_level', value: debug_level}); data = $.param( data ); // turn the result into a query string // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { if( response.status == 'valid' ){ synctable.find('> tbody').html( response.html ); } //loading.hide(); setTimeout( function() { load_cronjobs(); }, 500); }, 'json'); } // activate/clear action for single cronjob function cron_activate( row ) { var data = []; //row_loading( row, 'show' ); loading.show(); data.push({name: 'action', value: 'WooZone_cronjobs'}); data.push({name: 'subaction', value: 'cron_activate'}); data.push({name: 'debug_level', value: debug_level}); data.push({name: 'cron_id', value: row.data('cron_id')}); data.push({name: 'new_status', value: row.data('new_status')}); data = $.param( data ); // turn the result into a query string // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { if( response.status == 'valid' ){ //synctable.find('> tbody').html( response.html ); // it needs an new page access through ajax so the new event schedules become active! load_cronjobs(); // default page load } //row_loading( row, 'hide' ); //loading.hide(); }, 'json'); } function row_loading( row, status, pms ) { var pms = pms || {}; if( status == 'show' ){ if( row.size() > 0 ){ if( row.find('.WooZone-row-loading-marker').size() == 0 ){ var row_loading_box = $('<div class="WooZone-row-loading-marker"><div class="WooZone-row-loading"><div class="WooZone-meter WooZone-animate" style="width:30%; margin: 8px 0px 0px 30%;"><span style="width:100%"></span></div></div></div>') row_loading_box.find('div.WooZone-row-loading').css({ 'width': row.width(), 'height': row.height(), 'top': '-16px' }); row.find('td').eq(0).append(row_loading_box); } row.find('.WooZone-row-loading-marker').fadeIn('fast'); } }else{ row.find('.WooZone-row-loading-marker').fadeOut('fast'); } } function triggers() { // reload cronjobs maincontainer.on('click', '#WooZone-cj-reload .WooZone-form-button', function(e){ e.preventDefault(); load_cronjobs(); }); load_cronjobs(); // default page load // activate/clear action for single cronjob synctable.on('click', 'td input.WooZone-form-button', function(e){ e.preventDefault(); var that = $(this), row = that.parents("tr").eq(0); cron_activate( row ); }); // reinit cronjobs maincontainer.on('click', '#WooZone-cj-reinit .WooZone-cj-button-reinit', function(e){ e.preventDefault(); reinit_cronjobs(); }); } var misc = { hasOwnProperty: function(obj, prop) { var proto = obj.__proto__ || obj.constructor.prototype; return (prop in obj) && (!(prop in proto) || proto[prop] !== obj[prop]); }, size: function(obj) { var size = 0; for (var key in obj) { if (misc.hasOwnProperty(obj, key)) size++; } return size; } }; // external usage return { } })(jQuery);