From 2ecb5991e69c288633fdac86b4b0503e67a52432 Mon Sep 17 00:00:00 2001
From: Phil Johnston <support@mintplugins.com>
Date: Thu, 18 Jun 2015 21:06:57 -0400
Subject: [PATCH] All "bind"s changed to "on"
---
wp-admin/js/postbox.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js
index 560147b..19604bc 100644
a
|
b
|
var postboxes; |
11 | 11 | |
12 | 12 | self.init(page, args); |
13 | 13 | |
14 | | $( document ).on( '.postbox .hndle, .postbox .handlediv', 'click.postboxes', function() { |
| 14 | $( document ).on( 'click.postboxes', '.postbox .hndle, .postbox .handlediv', function() { |
15 | 15 | var p = $(this).parent('.postbox'), id = p.attr('id'); |
16 | 16 | |
17 | 17 | if ( 'dashboard_browser_nag' == id ) |
… |
… |
var postboxes; |
36 | 36 | e.stopPropagation(); |
37 | 37 | }); |
38 | 38 | |
39 | | $( '.postbox a.dismiss' ).bind( 'click.postboxes', function() { |
| 39 | $( document ).on( 'click.postboxes', '.postbox a.dismiss', function() { |
40 | 40 | var hide_id = $(this).parents('.postbox').attr('id') + '-hide'; |
41 | 41 | $( '#' + hide_id ).prop('checked', false).triggerHandler('click'); |
42 | 42 | return false; |
43 | 43 | }); |
44 | 44 | |
45 | | $('.hide-postbox-tog').bind('click.postboxes', function() { |
| 45 | $( document ).on('click.postboxes', '.hide-postbox-tog', function() { |
46 | 46 | var boxId = $(this).val(), |
47 | 47 | $postbox = $( '#' + boxId ); |
48 | 48 | |
… |
… |
var postboxes; |
60 | 60 | $document.trigger( 'postbox-toggled', $postbox ); |
61 | 61 | }); |
62 | 62 | |
63 | | $('.columns-prefs input[type="radio"]').bind('click.postboxes', function(){ |
| 63 | $( document ).on('click.postboxes', '.columns-prefs input[type="radio"]', function(){ |
64 | 64 | var n = parseInt($(this).val(), 10); |
65 | 65 | |
66 | 66 | if ( n ) { |
… |
… |
var postboxes; |
104 | 104 | }); |
105 | 105 | |
106 | 106 | if ( isMobile ) { |
107 | | $(document.body).bind('orientationchange.postboxes', function(){ postboxes._pb_change(); }); |
| 107 | $(document.body).on( 'ready', 'orientationchange.postboxes', function(){ postboxes._pb_change(); }); |
108 | 108 | this._pb_change(); |
109 | 109 | } |
110 | 110 | |