Changeset 30703
- Timestamp:
- 2016-08-15T11:24:20+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r30700 r30703 272 272 level = 0; 273 273 } 274 275 274 var parts = sectionID.split("."); 276 275 if(level >= parts.length) … … 292 291 } 293 292 294 if(!is Expanded(idToExpand))293 if(!isSectionExpanded(idToExpand)) 295 294 { 296 295 toggleSection(idToExpand, function(success) … … 319 318 { 320 319 var id = $(divs[i]).attr("id").replace(/^doc(.*)/, "$1"); 321 if(is Expanded(id) != expand)320 if(isSectionExpanded(id) != expand) 322 321 { 323 322 //Don't collapse the top level … … 460 459 } 461 460 462 function is Expanded(sectionID)461 function isSectionExpanded(sectionID) 463 462 { 464 463 var docElem = gs.jqGet("doc" + sectionID);
Note:
See TracChangeset
for help on using the changeset viewer.