Changeset 33508

Show
Ignore:
Timestamp:
24.09.2019 14:07:15 (3 weeks ago)
Author:
kjdon
Message:

pass a param into readyPageForEditing - indicates whether to add the MapGPS edit buttons

Files:
1 modified

Legend:

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

    r32872 r33508  
    278278} 
    279279 
    280 function readyPageForEditing() { 
     280function readyPageForEditing(mapGPSEditingAllowed) { 
    281281 
    282282    if ($("#metadataSetList").length) { 
     
    354354    var titleDivs = $(".sectionTitle"); 
    355355    for (var i = 0; i < titleDivs.length; i++) { 
    356         addEditMetadataLink(titleDivs[i]); 
     356        addEditMetadataLink(titleDivs[i]); 
     357        if (mapGPSEditingAllowed) { 
    357358        addEditMapGPSLink(titleDivs[i]); 
     359        } 
    358360    } 
    359361