Changeset 25363 for main/trunk/greenstone3/web/interfaces/oran
- Timestamp:
- 2012-04-12T14:59:55+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/js/documentmaker_scripts.js
r25296 r25363 20 20 for(var i = 0; i < allLinks.length; i++) 21 21 { 22 if(allLinks[i].getAttribute("class") && ( hasClass(allLinks[i], "dbdoc")))22 if(allLinks[i].getAttribute("class") && (gs.functions.hasClass(allLinks[i], "dbdoc"))) 23 23 { 24 24 docLinks.push(allLinks[i]); … … 60 60 for(var i = 0; i < docLinks.length; i++) 61 61 { 62 var callback = { 62 var callback = 63 { 63 64 success: addDocumentStructureToPage, 64 65 failure: function(data){/*alert("FAILED");*/} … … 240 241 topLevelUL.appendChild(textDiv); 241 242 243 //Create a blank metadata table 244 //TODO: INSERT THIS! 245 242 246 //Add a title to the top-level item 243 247 var title = createSectionTitle(gs.text.dse.untitled); … … 413 417 { 414 418 current = children[i]; 415 if(current.nodeName.toLowerCase() == "li" && ! hasClass(current, "placeHolder"))419 if(current.nodeName.toLowerCase() == "li" && !gs.functions.hasClass(current, "placeHolder")) 416 420 { 417 421 var newSection = duplicateSection(current); … … 619 623 updateRecursive(current, currentDocument, pos, level); 620 624 } 621 else if (current.nodeName.toLowerCase() == "li" && hasClass(current, "dragItem") && !hasClass(current, "placeHolder"))625 else if (current.nodeName.toLowerCase() == "li" && gs.functions.hasClass(current, "dragItem") && !gs.functions.hasClass(current, "placeHolder")) 622 626 { 623 627 if(currentDocument == null && current.nodeID) … … 636 640 } 637 641 638 if(! hasClass(current, "topLevel"))642 if(!gs.functions.hasClass(current, "topLevel")) 639 643 { 640 644 current.nodeID = currentDocument + "." + pos; … … 646 650 current.index = _indexCounter++; 647 651 } 648 else if ( hasClass(current, "placeHolder") && !current.isEmptyList)652 else if (gs.functions.hasClass(current, "placeHolder") && !current.isEmptyList) 649 653 { 650 654 var pos; … … 679 683 680 684 //If this list is empty or has 1 placeholder child 681 if(liCount == 0 || (liCount == 1 && hasClass(lastItem, "placeHolder")))685 if(liCount == 0 || (liCount == 1 && gs.functions.hasClass(lastItem, "placeHolder"))) 682 686 { 683 687 //Give it the emptyList css class (if it does not already have it) … … 696 700 } 697 701 //Remove the empty list class if the list is no longer empty 698 else if( hasClass(parent, "emptyList"))702 else if(gs.functions.hasClass(parent, "emptyList")) 699 703 { 700 704 parent.setAttribute("class", parent.getAttribute("class").replace(/emptyList/g, ""));
Note:
See TracChangeset
for help on using the changeset viewer.