diff options
author | Ananya Sen | 2012-02-29 13:25:35 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-29 13:25:35 -0800 |
commit | 7a259f8c78a2394e32c62654623285ee595c6249 (patch) | |
tree | 69d2e6d6e1630a77f91e0dd68a26a822f427f198 /js/io/ui/file-picker | |
parent | 4e21db069b28c79236c8c7fd19dcc7810d28c5cb (diff) | |
download | ninja-7a259f8c78a2394e32c62654623285ee595c6249.tar.gz |
IKNINJA-1217: use encodeURI instead to save into sessionStorage
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/file-picker')
-rw-r--r-- | js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js index 428e7bab..3d99ae4d 100644 --- a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js +++ b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js | |||
@@ -861,12 +861,12 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, { | |||
861 | var dataStore = window.sessionStorage; | 861 | var dataStore = window.sessionStorage; |
862 | try { | 862 | try { |
863 | if(this.pickerModel.pickerMode === "write"){ | 863 | if(this.pickerModel.pickerMode === "write"){ |
864 | dataStore.setItem('lastSavedFolderURI',escape(""+this.currentURI)); | 864 | dataStore.setItem('lastSavedFolderURI', encodeURI(""+this.currentURI)); |
865 | } | 865 | } |
866 | else if(this.pickerModel.inFileMode === true){ | 866 | else if(this.pickerModel.inFileMode === true){ |
867 | dataStore.setItem('lastOpenedFolderURI_fileSelection',escape(""+this.currentURI)); | 867 | dataStore.setItem('lastOpenedFolderURI_fileSelection',encodeURI(""+this.currentURI)); |
868 | }else if(this.pickerModel.inFileMode === false){ | 868 | }else if(this.pickerModel.inFileMode === false){ |
869 | dataStore.setItem('lastOpenedFolderURI_folderSelection',escape(""+this.currentURI)); | 869 | dataStore.setItem('lastOpenedFolderURI_folderSelection',encodeURI(""+this.currentURI)); |
870 | } | 870 | } |
871 | } | 871 | } |
872 | catch(e){ | 872 | catch(e){ |