Changeset 20677
- Timestamp:
- 05/01/2012 10:50:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/postbox.dev.js
r20614 r20677 64 64 65 65 init : function(page, args) { 66 var isMobile = $(document.body).hasClass('mobile'); 67 66 68 $.extend( this, args || {} ); 67 69 $('#wpbody-content').css('overflow','hidden'); … … 72 74 handle: '.hndle', 73 75 cursor: 'move', 74 delay: ( $('body').hasClass('mobile')? 200 : 0 ),76 delay: ( isMobile ? 200 : 0 ), 75 77 distance: 2, 76 78 tolerance: 'pointer', … … 94 96 }); 95 97 96 if ( navigator.userAgent.match(/mobile/i)) {98 if ( isMobile ) { 97 99 $(document.body).bind('orientationchange.postboxes', function(){ postboxes._pb_change(); }); 98 100 this._pb_change();
Note: See TracChangeset
for help on using the changeset viewer.