Changeset 25545 for main/trunk


Ignore:
Timestamp:
2012-05-08T15:18:39+12:00 (12 years ago)
Author:
sjm84
Message:

Some minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/js/documentmaker_scripts_dd.js

    r25365 r25545  
    218218                    }
    219219                }
    220                
     220
    221221                //Save the undo operation if necessary
    222222                if(needsUndo)
     
    254254            new YAHOO.example.DDList(srcEl.parentNode.previousSibling);
    255255        }
    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, ""));
    259259        }
    260260    },
     
    278278                var destEl = Dom.get(id);
    279279                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"))
    281281                {
    282282                    destEl.appendChild(this.getEl());
     
    311311        // notifications for the list.
    312312        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"))
    314314            {
    315315                var orig_p = srcEl.parentNode;
Note: See TracChangeset for help on using the changeset viewer.