Ignore:
Timestamp:
02/09/12 15:36:26 (9 years ago)
Author:
sjm84
Message:

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

File:
1 edited

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        }
Note: See TracChangeset for help on using the changeset viewer.