Changeset 25545 for main/trunk
- Timestamp:
- 2012-05-08T15:18:39+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/js/documentmaker_scripts_dd.js
r25365 r25545 218 218 } 219 219 } 220 220 221 221 //Save the undo operation if necessary 222 222 if(needsUndo) … … 254 254 new YAHOO.example.DDList(srcEl.parentNode.previousSibling); 255 255 } 256 if(gs.functions.hasClass(srcEl, "topLevel "))257 { 258 srcEl.setAttribute("class", srcEl.getAttribute("class").replace(/topLevel /g, ""));256 if(gs.functions.hasClass(srcEl, "topLevelItem")) 257 { 258 srcEl.setAttribute("class", srcEl.getAttribute("class").replace(/topLevelItem/g, "")); 259 259 } 260 260 }, … … 278 278 var destEl = Dom.get(id); 279 279 var destDD = DDM.getDDById(id); 280 if(gs.functions.hasClass(destEl, "topLevel ") && gs.functions.hasClass(destEl, "dragList"))280 if(gs.functions.hasClass(destEl, "topLevelItem") && gs.functions.hasClass(destEl, "dragList")) 281 281 { 282 282 destEl.appendChild(this.getEl()); … … 311 311 // notifications for the list. 312 312 if(destEl.nodeName.toLowerCase() == "li") { 313 if((gs.functions.hasClass(destEl, "dragItem") || gs.functions.hasClass(destEl, "placeHolder")) && !gs.functions.hasClass(destEl, "topLevel ") && !gs.functions.hasClass(destEl, "newSection"))313 if((gs.functions.hasClass(destEl, "dragItem") || gs.functions.hasClass(destEl, "placeHolder")) && !gs.functions.hasClass(destEl, "topLevelItem") && !gs.functions.hasClass(destEl, "newSection")) 314 314 { 315 315 var orig_p = srcEl.parentNode;
Note:
See TracChangeset
for help on using the changeset viewer.