Changeset 30764

Show
Ignore:
Timestamp:
26.08.2016 17:16:37 (3 years ago)
Author:
davidb
Message:

Tidy up on where to place the 'expand contents' tables for paged-image docs

Files:
1 modified

Legend:

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

    r30748 r30764  
    628628function addExpandContractButtons()  
    629629{ 
    630     var tableOfContents = $("#rightSidebar  div.tableOfContentsContainer"); 
    631     var table = "<tr><td><table style=\"width:100%; text-align:center;\"><tr><td><a href=\"javascript:expandOrCollapseAll(true);\">Expand document</a></td><td><a href=\"javascript:expandOrCollapseAll(false);\">Collapse document</a></td></tr></table></td></tr>" ; 
     630    var tableOfContents = $("#tableOfContents"); 
     631    var table = "<table style=\"width:100%; text-align:center;\"><tr><td><a href=\"javascript:expandOrCollapseAll(true);\">Expand document</a></td><td><a href=\"javascript:expandOrCollapseAll(false);\">Collapse document</a></td></tr></table>" ; 
     632     
    632633   tableOfContents.prepend(table); 
    633634