Changeset 608 for trunk/plugins/ExtendedFileManager/assets
- Timestamp:
- 11/17/06 14:27:00 (13 years ago)
- Location:
- trunk/plugins/ExtendedFileManager/assets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ExtendedFileManager/assets/images.js
r604 r608 1 1 /** 2 2 * Functions for the image listing, used by images.php only 3 * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz 3 * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz, Raimund Meyer 4 4 * Version: Updated on 08-01-2005 by Afru 5 5 * Version: Updated on 04-07-2006 by Krzysztof Kotowicz 6 * Package: ExtendedFileManager (EFM 1.1.2) 6 * Version: Updated on 17-11-2006 by Raimund Meyer 7 * Package: ExtendedFileManager (EFM 1.1.3) 7 8 * http://www.afrusoft.com/htmlarea 8 9 */ … … 19 20 var viewtype = selection.options[selection.selectedIndex].value; 20 21 location.href = _backend_url + "__function=images&mode="+mode+"&dir="+newDir+"&viewtype="+viewtype; 22 document.cookie = "EFMStartDir" + mode + "="+newDir; 21 23 } 22 24 … … 87 89 function updateDir(newDir) 88 90 { 89 var selection = window.top.document.getElementById('dirPath'); 91 var mode = window.top.document.getElementById('manager_mode').value; 92 document.cookie = "EFMStartDir" + mode + "="+newDir; 93 94 var selection = window.top.document.getElementById('dirPath'); 90 95 if(selection) 91 96 { -
trunk/plugins/ExtendedFileManager/assets/manager.js
r604 r608 1 1 /** 2 2 * Functions for the ExtendedFileManager, used by manager.php only 3 * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz 3 * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz, Raimund Meyer 4 4 * Version: Updated on 08-01-2005 by Afru 5 5 * Version: Updated on 20-06-2006 by Krzysztof Kotowicz 6 * Package: ExtendedFileManager (EFM 1.1.1) 6 * Version: Updated on 17-11-2006 by Raimund Meyer 7 * Package: ExtendedFileManager (EFM 1.1.3) 7 8 * http://www.afrusoft.com/htmlarea 8 9 */ … … 155 156 156 157 // Locate to the correct directory 158 var startDir; 157 159 var dreg = new RegExp('^(.*/)([^/]+)$'); 158 160 if (dreg.test(param['f_href'])) 159 161 { 160 changeDir(RegExp.$1); 162 startDir = RegExp.$1; 163 } 164 else 165 { 166 startDir = document.cookie.match(/EFMStartDirlink=(.*?)(;|$)/); 167 if (startDir) startDir = startDir[1]; 168 } 169 170 if (startDir) 171 { 172 changeDir(startDir); 161 173 var dirPath = document.getElementById('dirPath'); 162 174 for(var i = 0; i < dirPath.options.length; i++) … … 204 216 target_select.onchange = onTargetChanged; 205 217 document.getElementById("f_href").focus(); 218 } 219 else if (!param) 220 { 221 var startDir = document.cookie.match(new RegExp ("EFMStartDir" + manager_mode + "=(.*?)(;|$)")); 222 if (startDir) 223 { 224 startDir = startDir[1]; 225 changeDir(startDir); 226 var dirPath = document.getElementById('dirPath'); 227 for(var i = 0; i < dirPath.options.length; i++) 228 { 229 if(dirPath.options[i].value == encodeURIComponent(startDir)) 230 { 231 dirPath.options[i].selected = true; 232 break; 233 } 234 } 235 } 206 236 } 207 237 }
Note: See TracChangeset
for help on using the changeset viewer.