Ignore:
Timestamp:
07/04/06 14:20:38 (13 years ago)
Author:
koto
Message:
Location:
trunk/plugins/ExtendedFileManager/assets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/assets/imagelist.css

    r521 r524  
    11body { margin: 0; padding: 0;} 
    22.edit   { font-size: 8pt; font-family: small-caption, sans-serif; padding-top: 3px;} 
    3 .edit a { border: none; padding: 3px; text-decoration:none; } 
     3.edit a { border: none; padding: 0; text-decoration:none; } 
    44.edit a:hover { background-color: ButtonHighlight; } 
    55.edit a img { border: none; vertical-align: bottom; } 
  • trunk/plugins/ExtendedFileManager/assets/images.js

    r521 r524  
    33 * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz 
    44 * Version: Updated on 08-01-2005 by Afru 
    5  * Version: Updated on 20-06-2006 by Krzysztof Kotowicz 
    6  * Package: ExtendedFileManager (EFM 1.1.1) 
     5 * Version: Updated on 04-07-2006 by Krzysztof Kotowicz 
     6 * Package: ExtendedFileManager (EFM 1.1.2) 
    77 * http://www.afrusoft.com/htmlarea 
    88 */ 
    99 
    1010function i18n(str) { 
    11     return HTMLArea._lc(str, 'ImageManager'); 
     11    return HTMLArea._lc(str, 'ExtendedFileManager'); 
    1212} 
    1313 
     
    2727    var viewtype = selection.options[selection.selectedIndex].value; 
    2828    location.href = _backend_url + "__function=images&mode="+mode+"&dir="+dir+"&newDir="+newDir+"&viewtype="+viewtype; 
     29} 
     30 
     31function renameFile(oldPath) { 
     32    // strip directory and extension 
     33    var oldName=oldPath.replace(/.*%2F/,'').replace(/\..*$/,''); 
     34    var newName = prompt(i18n('Please enter new name for this file...'), oldName); 
     35 
     36    if(newName == '' || newName == null || newName == oldName) 
     37    { 
     38        alert(i18n('Cancelled rename.')); 
     39        return false; 
     40    } 
     41    var mode=window.top.document.getElementById('manager_mode').value; 
     42    var selection = window.top.document.getElementById('dirPath'); 
     43    var dir = selection.options[selection.selectedIndex].value; 
     44    selection = window.top.document.getElementById('viewtype'); 
     45    var viewtype = selection.options[selection.selectedIndex].value; 
     46    location.href = _backend_url + "__function=images&mode="+mode+"&dir="+dir+"&rename="+oldPath+"&renameTo="+newName+"&viewtype="+viewtype; 
    2947} 
    3048 
Note: See TracChangeset for help on using the changeset viewer.