Ticket #5492: ie7_jq122_sortable_fix.diff
| File ie7_jq122_sortable_fix.diff, 909 bytes (added by , 18 years ago) |
|---|
-
wp-admin/js/widgets.js
102 102 103 103 $('a.widget-control-add').click( addClick ); 104 104 105 var widgetSortable; 106 var widgetSortableInit = function() { 107 try { // a hack to make sortables work in jQuery 1.2+ and IE7 108 $('#current-sidebar .widget-control-list').SortableDestroy(); 109 } catch(e) {} 110 widgetSortable = $('#current-sidebar .widget-control-list').Sortable( { 111 accept: 'widget-sortable', 112 helperclass: 'sorthelper', 113 handle: 'h4.widget-title', 114 onStop: widgetSortableInit 115 } ); 116 } 117 105 118 // initialize sortable 106 var widgetSortable = $('#current-sidebar .widget-control-list').Sortable( { 107 accept: 'widget-sortable', 108 helperclass: 'sorthelper', 109 handle: 'h4.widget-title' 110 } ); 119 widgetSortableInit(); 111 120 112 121 });