Changeset 665:315ff9eb4199 for plugins/widgets/widgets.js
- Timestamp:
- 07/31/11 10:34:58 (14 years ago)
- Branch:
- themes
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/widgets.js
r0 r665 10 10 var w_nav = document.getElementById('dndnav'); 11 11 var w_ext = document.getElementById('dndextra'); 12 var w_custom = document.getElementById('dndcustom'); 12 13 13 14 w_nav.className = 'hideControls'; 14 15 w_ext.className = 'hideControls'; 16 w_custom.className = 'hideControls'; 15 17 16 18 removeElements(document.getElementById('listWidgets'),'input'); … … 18 20 removeElements(w_nav,'p'); 19 21 removeElements(w_ext,'p'); 22 removeElements(w_custom,'p'); 20 23 hideElements(w_nav,'input'); 21 24 hideElements(w_ext,'input'); 25 hideElements(w_custom,'input'); 22 26 23 27 configControls(w_nav); 24 28 configControls(w_ext); 29 configControls(w_custom); 25 30 26 31 dragdrop.makeListContainer(widgets,'div',setHandle); … … 30 35 dragdrop.makeListContainer(w_ext,'div',setHandle); 31 36 w_ext.onDragEnd = extraDragEnd; 37 dragdrop.makeListContainer(w_custom,'div',setHandle); 38 w_custom.onDragEnd = customDragEnd; 32 39 33 40 // Helper to remove some elements … … 61 68 function extraDragEnd() { 62 69 formControls(this.parentNode,'extra'); 70 configControls(this.parentNode); 71 removeEmptyMsg(this.parentNode); 72 } 73 function customDragEnd() { 74 formControls(this.parentNode,'custom'); 63 75 configControls(this.parentNode); 64 76 removeEmptyMsg(this.parentNode);
Note: See TracChangeset
for help on using the changeset viewer.