Changeset 25368 for main/trunk
- Timestamp:
- 2012-04-12T15:09:25+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/js/documentmaker_scripts_util.js
r25296 r25368 218 218 219 219 //Save metadata 220 if( hasClass(changedElem, "metaTableCell"))220 if(gs.functions.hasClass(changedElem, "metaTableCell")) 221 221 { 222 222 //Get document ID … … 243 243 } 244 244 //Save content 245 else if( hasClass(changedElem, "renderedText"))245 else if(gs.functions.hasClass(changedElem, "renderedText")) 246 246 { 247 247 var section = changedElem.parentDiv.parentItem; … … 249 249 addCollectionToBuild(section.collection); 250 250 } 251 else if( hasClass(changedElem, "sectionText"))251 else if(gs.functions.hasClass(changedElem, "sectionText")) 252 252 { 253 253 var id = changedElem.getAttribute("id"); … … 399 399 } 400 400 } 401 statusID = _statusBar.addStatus(gs.text.dse. activating + " " + collections[counter] + "...");401 statusID = _statusBar.addStatus(gs.text.dse.building + " " + collections[counter] + "..."); 402 402 ajax.send(); 403 403 } … … 815 815 } 816 816 817 function hasClass(elem, classVal)818 {819 if(!elem || !elem.getAttribute("class"))820 {821 return false;822 }823 824 return (elem.getAttribute("class").search(classVal) != -1)825 }826 827 817 function getNodeContent(node) 828 818 {
Note:
See TracChangeset
for help on using the changeset viewer.