Changeset 31545

Show
Ignore:
Timestamp:
28.03.2017 20:24:58 (2 years ago)
Author:
ak19
Message:

Bugfix to bad JavaScripting? ahead of upcoming commits: should have declared function-scope var with var keyword, instead I had made it global by leaving out the var keyword.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js

    r31543 r31545  
    594594gs.functions.setMetadataArray = function(collection, site, docArray, metamode, where, responseFunction, forceSync)  
    595595{ 
    596     docArrayJSON = JSON.stringify(docArray); 
     596    var docArrayJSON = JSON.stringify(docArray); 
    597597     
    598598    var params = "a=" + escape("set-metadata-array"); //"a=set-metadata-array"; 
     
    632632gs.functions.getMetadataArray = function(collection, site, docArray, where, responseFunction, forceSync) 
    633633{ 
    634     docArrayJSON = JSON.stringify(docArray); 
     634    var docArrayJSON = JSON.stringify(docArray); 
    635635     
    636636    var params = "a=" + escape("get-metadata-array"); //"a=set-metadata-array";