Changeset 5158
- Timestamp:
- Oct 23, 2009, 11:33:36 AM (14 years ago)
- Location:
- trunk/www
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/filemanager/directories/list_directories.jsp
r4964 r5158 266 266 } 267 267 %> 268 function synchronizeTo(directoryId, parentId) 269 { 270 var item = JoustMenu.menuItems['D'+directoryId]; 271 if (!item) 272 { 273 if (!parentId) parentId = parent.lastOpenDirectoryId; 274 if (parentId) 275 { 276 var parentDir = JoustMenu.menuItems['D'+parentId]; 277 if (parentDir.lazyInit) 278 { 279 JoustMenu.toggle(parentDir.index); 280 item = JoustMenu.menuItems['D'+directoryId]; 281 } 282 } 283 } 284 if (item) JoustMenu.select(item.index); 285 } 268 286 function refresh() 269 287 { -
trunk/www/filemanager/files/list_files.jsp
r4889 r5158 316 316 frm.submit(); 317 317 } 318 function selectDirectory(subDirId) 319 { 320 parent.frames.directories.synchronizeTo(subDirId, <%=directoryId%>); 321 } 318 322 </script> 319 323 </base:head> … … 707 711 boolean sharePermission = item.hasPermission(Permission.SET_PERMISSION); 708 712 String name = HTML.encodeTags(item.getName()); 709 String path = HTML.encodeTags(item.getPath().toString()); 713 String path = item.getPath().toString(); 714 String tagPath = HTML.encodeTags(path); 710 715 String icon = item.getAutoCompress() ? "directory_compressed.gif" : "directory.gif"; 711 716 %> … … 715 720 ><base:icon 716 721 image="<%=icon%>" 717 tooltip="<%=path%>" 722 tooltip="<%=tagPath%>" 723 onclick="<%="selectDirectory(" + itemId + ")"%>" 718 724 /></tbl:header> 719 725 <tbl:header … … 796 802 String name = HTML.encodeTags(item.getName()); 797 803 String path = item.getPath().toString(); 798 String urlPath = HTML.urlEncode(path);799 804 String tagPath = HTML.encodeTags(path); 800 805 String icon = item.isCompressed() ? "file_compressed.gif" : "file.gif"; … … 827 832 name="item_id" 828 833 value="<%=itemId%>" 829 title="<%= path%>"834 title="<%=tagPath%>" 830 835 <%=selectedItemId == itemId ? "checked" : ""%> 831 836 onclick="updateSelected(this)" -
trunk/www/include/scripts/ajax.js
r4967 r5158 66 66 this.parseResponse = function(responseText) 67 67 { 68 var lines = responseText.split( /\n/);68 var lines = responseText.split('\n'); 69 69 var elements = new Array(); 70 70 var status = null;
Note: See TracChangeset
for help on using the changeset viewer.