Changeset 25065

Show
Ignore:
Timestamp:
09.02.2012 15:36:26 (8 years ago)
Author:
sjm84
Message:

Ampersands in the transaction text are now turned into %26 and turned back again on the server

Files:
1 modified

Legend:

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

    r25012 r25065  
    182182            //Save content 
    183183            var section = changedElem.parentDiv.parentItem; 
    184             saveTransaction('{"operation":"setText", "text":"' + changedElem.innerHTML.replace(/"/g, "\\\"") + '", "collection":"' + section.collection + '", "oid":"' + section.nodeID + '"}'); 
     184            saveTransaction('{"operation":"setText", "text":"' + changedElem.innerHTML.replace(/"/g, "\\\"").replace(/&/g, "%26") + '", "collection":"' + section.collection + '", "oid":"' + section.nodeID + '"}'); 
    185185            addCollectionToBuild(section.collection); 
    186186        }