Changeset 30703 for main


Ignore:
Timestamp:
08/15/16 11:24:20 (4 years ago)
Author:
kjdon
Message:

renamed isExpanded to isSectionExpanded, as when document editing is turned on, isExpanded from documentmaker_scripts_util is overriding this function and then the clicking on a thumbnail and having the right page open up doesn't work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r30700 r30703  
    272272        level = 0;
    273273    }
    274 
    275274    var parts = sectionID.split(".");
    276275    if(level >= parts.length)
     
    292291    }
    293292   
    294     if(!isExpanded(idToExpand))
     293    if(!isSectionExpanded(idToExpand))
    295294    {
    296295        toggleSection(idToExpand, function(success)
     
    319318        {
    320319            var id = $(divs[i]).attr("id").replace(/^doc(.*)/, "$1");
    321             if(isExpanded(id) != expand)
     320            if(isSectionExpanded(id) != expand)
    322321            {
    323322                //Don't collapse the top level
     
    460459}
    461460
    462 function isExpanded(sectionID)
     461function isSectionExpanded(sectionID)
    463462{
    464463    var docElem = gs.jqGet("doc" + sectionID);
Note: See TracChangeset for help on using the changeset viewer.