Changeset 25100

Show
Ignore:
Timestamp:
20.02.2012 15:23:36 (8 years ago)
Author:
sjm84
Message:

Collection will be rebuilt when metadata is changed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/js/documentmaker_scripts_util.js

    r25099 r25100  
    170170{ 
    171171    var changes = de.Changes.getChangedEditableSections(); 
    172  
     172    var metaBuild = false; 
     173     
    173174    for(var i = 0; i < changes.length; i++) 
    174175    { 
     
    192193            changedElem.originalValue = changedElem.innerHTML; 
    193194            addCollectionToBuild(gs.cgiParams.p_c); 
     195            metaBuild = true; 
    194196        } 
    195197        //Save content 
     
    242244    } 
    243245     
    244     if(request != "[]") 
     246    if(metaBuild || request != "[]") 
    245247    { 
    246248        var saveButton = document.getElementById("saveButton");