| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * @subpackage BackEnd Main Script Lib |
| 5 | 5 | * @category Scripts |
| 6 | 6 | * @author wpdevelop |
| 7 | 7 | * |
| 8 | - * @web-site http://oplugins.com/ | |
| 8 | + * @web-site https://oplugins.com/ | |
| 9 | 9 | * @email [email protected] |
| 10 | 10 | * |
| 11 | 11 | * @modified 2015-04-09 |
| 12 | 12 | */ |
| @@ -220,9 +220,9 @@ | ||
| 220 | 220 | jQuery.ajax({ // Start Ajax Sending |
| 221 | 221 | url: wpbm_ajaxurl, |
| 222 | 222 | type:'POST', |
| 223 | 223 | success: function (data, textStatus){if( textStatus == 'success') jQuery('#ajax_respond').html( data );}, |
| 224 | - error:function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:'+ textStatus; alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText); if ( XMLHttpRequest.status == 500 ) { alert('Error: 500'); } } , | |
| 224 | + error:function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:'+ textStatus; console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText); if ( XMLHttpRequest.status == 500 ) { console.error( 'Error: 500'); } } , | |
| 225 | 225 | // beforeSend: someFunction, |
| 226 | 226 | data:{ |
| 227 | 227 | action: 'WPBM_USER_SAVE_WINDOW_STATE', |
| 228 | 228 | user_id: us_id , |
| @@ -252,9 +252,9 @@ | ||
| 252 | 252 | jQuery.ajax({ // Start Ajax Sending |
| 253 | 253 | url: wpbm_ajaxurl, |
| 254 | 254 | type:'POST', |
| 255 | 255 | success: function (data, textStatus){if( textStatus == 'success') jQuery('#ajax_respond').html( data );}, |
| 256 | - error:function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:'+ textStatus; alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText); if ( XMLHttpRequest.status == 500 ) { alert('Error: 500'); } } , | |
| 256 | + error:function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:'+ textStatus; console.error( XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText); if ( XMLHttpRequest.status == 500 ) { console.error( 'Error: 500'); } } , | |
| 257 | 257 | // beforeSend: someFunction, |
| 258 | 258 | data:{ |
| 259 | 259 | action: 'WPBM_USER_SAVE_CUSTOM_DATA', |
| 260 | 260 | user_id: us_id, |
| @@ -279,9 +279,9 @@ | ||
| 279 | 279 | var inp_value; |
| 280 | 280 | var element; |
| 281 | 281 | var el_type; |
| 282 | 282 | |
| 283 | - for (i=0; i<count; i++) { | |
| 283 | + for (var i=0; i<count; i++) { | |
| 284 | 284 | element = submit_form.elements[i]; |
| 285 | 285 | |
| 286 | 286 | if ( (element.type !=='button') && (element.type !=='hidden') ) { |
| 287 | 287 | |
| @@ -522,10 +522,11 @@ | ||
| 522 | 522 | //return parser.href; |
| 523 | 523 | window.location.href = parser.href; |
| 524 | 524 | } |
| 525 | 525 | |
| 526 | +// jQuery(window).load(function(){ | |
| 527 | +jQuery( window ).on( "load", function (){ //FixIn: 2.0.18.1 | |
| 526 | 528 | |
| 527 | -jQuery(window).load(function(){ | |
| 528 | 529 | |
| 529 | 530 | // Color Text picker /////////////////////////////////////////////////////// |
| 530 | 531 | if ( jQuery('.field-text-color').length > 0 ) { |
| 531 | 532 | jQuery('.field-text-color').iris( { |
| @@ -538,9 +539,9 @@ | ||
| 538 | 539 | , palettes: ['#333', '#555', '#777', '#aaa', '#fff'] |
| 539 | 540 | } ).each( function() { |
| 540 | 541 | jQuery(this).css( { backgroundColor: jQuery(this).val() } ); |
| 541 | 542 | }) |
| 542 | - .click(function(){ | |
| 543 | + .on( 'click', function() { //FixIn: 2.0.18.4 | |
| 543 | 544 | jQuery('.iris-picker').hide(); |
| 544 | 545 | jQuery(this).closest('div').find('.iris-picker').show(); |
| 545 | 546 | }); |
| 546 | 547 | } |
| @@ -556,14 +557,14 @@ | ||
| 556 | 557 | , palettes: [ '#FFEE99', '#459', '#78b', '#ab0', '#df5d5d', '#f0f'] |
| 557 | 558 | } ).each( function() { |
| 558 | 559 | jQuery(this).css( { backgroundColor: jQuery(this).val() } ); |
| 559 | 560 | }) |
| 560 | - .click(function(){ | |
| 561 | + .on( 'click', function() { //FixIn: 2.0.18.4 | |
| 561 | 562 | jQuery('.iris-picker').hide(); |
| 562 | 563 | jQuery(this).closest('div').find('.iris-picker').show(); |
| 563 | 564 | }); |
| 564 | 565 | |
| 565 | - jQuery('.field-text-color, .field-background-color').click(function(event){ | |
| 566 | + jQuery('.field-text-color, .field-background-color').on( 'click', function(event) { //FixIn: 2.0.18.4 | |
| 566 | 567 | event.stopPropagation(); |
| 567 | 568 | }); |
| 568 | 569 | } |
| 569 | 570 | |
| @@ -580,18 +581,18 @@ | ||
| 580 | 581 | , palettes: ['#125', '#459', '#78b', '#ab0', '#de3', '#f0f'] |
| 581 | 582 | } ).each( function() { |
| 582 | 583 | jQuery(this).css( { backgroundColor: jQuery(this).val() } ); |
| 583 | 584 | }) |
| 584 | - .click(function(){ | |
| 585 | + .on( 'click', function() { //FixIn: 2.0.18.4 | |
| 585 | 586 | jQuery('.iris-picker').hide(); |
| 586 | 587 | jQuery(this).closest('td').find('.iris-picker').show(); |
| 587 | 588 | }); |
| 588 | 589 | |
| 589 | - jQuery('body').click(function() { | |
| 590 | + jQuery('body').on( 'click', function() { //FixIn: 2.0.18.4 | |
| 590 | 591 | jQuery('.iris-picker').hide(); |
| 591 | 592 | }); |
| 592 | 593 | |
| 593 | - jQuery('.wpbm_colorpick').click(function(event){ | |
| 594 | + jQuery('.wpbm_colorpick').on( 'click', function(event) { //FixIn: 2.0.18.4 | |
| 594 | 595 | event.stopPropagation(); |
| 595 | 596 | }); |
| 596 | 597 | } |
| 597 | 598 | |