Changeset 29077 for main

Show
Ignore:
Timestamp:
22.05.2014 14:21:39 (6 years ago)
Author:
kjdon
Message:

javascript escape function was deprecated in Java 1.5 Use encodeURI instead. This fixes pei jones issue of macrons disappearing from edited metadata.

Files:
1 modified

Legend:

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

    r28209 r29077  
    233233            var value = changedElem.innerHTML; 
    234234            value = value.replace(/ /g, " "); 
    235             value = escape(value); 
     235            value = encodeURI(value); 
    236236 
    237237            changedElem.originalValue = changedElem.innerHTML; 
    238              
    239238            metadataChanges.push({collection:collection, docID:docID, name:name, value:value, orig:changedElem.originalValue}); 
    240239            addCollectionToBuild(collection);