PluginProbe
Chartify – WordPress Chart Plugin / 3.7.1
Chartify – WordPress Chart Plugin v3.7.1
3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 All 83 releases
← All changes | admin/js/load-scripts.js +57 -57 trunk3.7.1 View file →
@@ -1,58 +1,58 @@
1 -!function(e){var c=e(document.body);c.on("click","tbody > tr > .check-column :checkbox",function(c){if("undefined"==c.shiftKey)return!0;if(c.shiftKey){if(!b)return!0;s=e(b).closest("form").find(":checkbox").filter(":visible:enabled"),a=s.index(b),r=s.index(this),l=e(this).prop("checked"),0<a&&0<r&&a!=r&&(a<r?s.slice(a,r):s.slice(r,a)).prop("checked",function(){return!!e(this).closest("tr").is(":visible")&&l})}var i=e(b=this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked");return e(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===i.length}),!0}),c.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(c){var i=e(this),t=i.closest("table"),n=i.prop("checked"),o=c.shiftKey||i.data("wp-toggle");t.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!e(this).is(":hidden,:disabled")&&(o?!e(this).prop("checked"):!!n)}),t.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!n})})}(jQuery);
2 - var $body = jQuery( document.body );
3 - /**
4 - * Collapses the admin menu.
5 - *
6 - * @return {void}
7 - */
8 - jQuery( '#collapse-button' ).on( 'click.collapse-menu', function() {
9 - var viewportWidth = getViewportWidth() || 961;
10 -
11 - // Reset any compensation for submenus near the bottom of the screen.
12 - jQuery('#adminmenu div.wp-submenu').css('margin-top', '');
13 -
14 - if ( viewportWidth < 960 ) {
15 - if ( $body.hasClass('auto-fold') ) {
16 - $body.removeClass('auto-fold').removeClass('folded');
17 - setUserSetting('unfold', 1);
18 - setUserSetting('mfold', 'o');
19 - menuState = 'open';
20 - } else {
21 - $body.addClass('auto-fold');
22 - setUserSetting('unfold', 0);
23 - menuState = 'folded';
24 - }
25 - } else {
26 - if ( $body.hasClass('folded') ) {
27 - $body.removeClass('folded');
28 - setUserSetting('mfold', 'o');
29 - menuState = 'open';
30 - } else {
31 - $body.addClass('folded');
32 - setUserSetting('mfold', 'f');
33 - menuState = 'folded';
34 - }
35 - }
36 -
37 - $document.trigger( 'wp-collapse-menu', { state: menuState } );
38 - });
39 -
40 -
41 - /**
42 - * Get the viewport width.
43 - *
44 - * @since 4.7.0
45 - *
46 - * @return {number|boolean} The current viewport width or false if the
47 - * browser doesn't support innerWidth (IE < 9).
48 - */
49 - function getViewportWidth() {
50 - var viewportWidth = false;
51 -
52 - if ( window.innerWidth ) {
53 - // On phones, window.innerWidth is affected by zooming.
54 - viewportWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
55 - }
56 -
57 - return viewportWidth;
1 +!function(e){var c=e(document.body);c.on("click","tbody > tr > .check-column :checkbox",function(c){if("undefined"==c.shiftKey)return!0;if(c.shiftKey){if(!b)return!0;s=e(b).closest("form").find(":checkbox").filter(":visible:enabled"),a=s.index(b),r=s.index(this),l=e(this).prop("checked"),0<a&&0<r&&a!=r&&(a<r?s.slice(a,r):s.slice(r,a)).prop("checked",function(){return!!e(this).closest("tr").is(":visible")&&l})}var i=e(b=this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked");return e(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===i.length}),!0}),c.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(c){var i=e(this),t=i.closest("table"),n=i.prop("checked"),o=c.shiftKey||i.data("wp-toggle");t.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!e(this).is(":hidden,:disabled")&&(o?!e(this).prop("checked"):!!n)}),t.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!n})})}(jQuery);
2 + var $body = jQuery( document.body );
3 + /**
4 + * Collapses the admin menu.
5 + *
6 + * @return {void}
7 + */
8 + jQuery( '#collapse-button' ).on( 'click.collapse-menu', function() {
9 + var viewportWidth = getViewportWidth() || 961;
10 +
11 + // Reset any compensation for submenus near the bottom of the screen.
12 + jQuery('#adminmenu div.wp-submenu').css('margin-top', '');
13 +
14 + if ( viewportWidth < 960 ) {
15 + if ( $body.hasClass('auto-fold') ) {
16 + $body.removeClass('auto-fold').removeClass('folded');
17 + setUserSetting('unfold', 1);
18 + setUserSetting('mfold', 'o');
19 + menuState = 'open';
20 + } else {
21 + $body.addClass('auto-fold');
22 + setUserSetting('unfold', 0);
23 + menuState = 'folded';
24 + }
25 + } else {
26 + if ( $body.hasClass('folded') ) {
27 + $body.removeClass('folded');
28 + setUserSetting('mfold', 'o');
29 + menuState = 'open';
30 + } else {
31 + $body.addClass('folded');
32 + setUserSetting('mfold', 'f');
33 + menuState = 'folded';
34 + }
35 + }
36 +
37 + $document.trigger( 'wp-collapse-menu', { state: menuState } );
38 + });
39 +
40 +
41 + /**
42 + * Get the viewport width.
43 + *
44 + * @since 4.7.0
45 + *
46 + * @return {number|boolean} The current viewport width or false if the
47 + * browser doesn't support innerWidth (IE < 9).
48 + */
49 + function getViewportWidth() {
50 + var viewportWidth = false;
51 +
52 + if ( window.innerWidth ) {
53 + // On phones, window.innerWidth is affected by zooming.
54 + viewportWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
55 + }
56 +
57 + return viewportWidth;
58 58 }