Ignore:
Timestamp:
10/29/06 23:53:06 (13 years ago)
Author:
ray
Message:

see Ticket #874

Location:
trunk/plugins/ExtendedFileManager/assets
Files:
4 edited

Legend:

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

    r524 r604  
    11body { margin: 0; padding: 0;} 
    2 .edit   { font-size: 8pt; font-family: small-caption, sans-serif; padding-top: 3px;} 
     2.edit,.dir_holder .fileName, .thumb_holder .fileName    { font-size: 8pt; font-family: small-caption, sans-serif; padding-top: 3px;} 
    33.edit a { border: none; padding: 0; text-decoration:none; } 
    44.edit a:hover { background-color: ButtonHighlight; } 
     
    2525.dir_holder a.dir, .thumb_holder a.thumb 
    2626{ 
    27   height:100px; 
     27  height:85px; 
    2828  display:block; 
    2929  text-align:center; 
     
    4444.listview { width:100% } 
    4545.listview td, .listview th { text-align:left; font-size:small; } 
    46 .listview td.actions { text-align: left; } 
     46.listview td.actions { text-align: right; } 
    4747.listview td.actions img { border:0; } 
    4848 
     
    5151.listview tbody a, listview tbody a:visited { font-weight: normal; text-decoration: none; color: #000; border:0px; padding:2px;} 
    5252.listview tbody a:hover { background-color:#0B256B; color:#fff;} 
     53 
     54.listview tbody tr:hover {background-color: rgb(221,221,255); 
  • trunk/plugins/ExtendedFileManager/assets/images.js

    r586 r604  
    4646    location.href = _backend_url + "__function=images&mode="+mode+"&dir="+dir+"&rename="+oldPath+"&renameTo="+newName+"&viewtype="+viewtype; 
    4747} 
    48  
     48function renameDir(oldName) { 
     49    // strip directory and extension 
     50    
     51    var newName = prompt(i18n('Please enter new name for this folder...'), oldName); 
     52 
     53    if(newName == '' || newName == null || newName == oldName) 
     54    { 
     55        alert(i18n('Cancelled rename.')); 
     56        return false; 
     57    } 
     58    var mode=window.top.document.getElementById('manager_mode').value; 
     59    var selection = window.top.document.getElementById('dirPath'); 
     60    var dir = selection.options[selection.selectedIndex].value; 
     61    selection = window.top.document.getElementById('viewtype'); 
     62    var viewtype = selection.options[selection.selectedIndex].value; 
     63    location.href = _backend_url + "__function=images&mode="+mode+"&dir="+dir+"&rename="+oldName+"&renameTo="+newName+"&viewtype="+viewtype; 
     64} 
     65function copyFile(file,action) 
     66{ 
     67        var selection = window.top.document.getElementById('dirPath'); 
     68    var dir = selection.options[selection.selectedIndex].value; 
     69        window.top.pasteButton({'dir':dir,'file':file,'action':action+'File'}); 
     70} 
     71function copyDir(dirToCopy,action) 
     72{ 
     73        var selection = window.top.document.getElementById('dirPath'); 
     74    var dir = selection.options[selection.selectedIndex].value; 
     75        window.top.pasteButton({'dir':dir,'file':dirToCopy,'action':action+'Dir'}); 
     76} 
     77function paste(action) 
     78{ 
     79    var mode=window.top.document.getElementById('manager_mode').value; 
     80    var selection = window.top.document.getElementById('dirPath'); 
     81    var dir = selection.options[selection.selectedIndex].value; 
     82    selection = window.top.document.getElementById('viewtype'); 
     83    var viewtype = selection.options[selection.selectedIndex].value; 
     84        location.href = _backend_url + "__function=images&mode="+mode+"&dir="+dir+"&paste="+action.action+"&srcdir="+action.dir+"&file="+action.file+"&viewtype="+viewtype; 
     85} 
    4986//update the dir list in the parent window. 
    5087function updateDir(newDir) 
     
    225262function confirmDeleteDir(dir, count) 
    226263{ 
    227     if(count > 0) 
     264   /* if(count > 0) 
    228265    { 
    229266        alert(i18n("Folder is not empty. Please delete all Files and Subfolders inside.")); 
    230267        return false; 
    231     } 
     268    }*/ 
    232269 
    233270    if(confirm(i18n('Delete folder "$dir=' + dir +'$"?'))) 
     
    240277{ 
    241278    window.parent.document.getElementById('f_preview').src = 
    242     f_url ? window.parent._backend_url + '__function=thumbs&img=' + f_url : ""; 
     279    f_url ? window.parent._backend_url + '__function=thumbs&img=' + f_url :window.parent.opener._editor_url+'plugins/ExtendedFileManager/img/1x1_transparent.gif'; 
    243280} 
    244281 
  • trunk/plugins/ExtendedFileManager/assets/manager.css

    r521 r604  
    1414.largelWidth{ width: 30em; } 
    1515.extralargelWidth{ width: 100%; } 
    16 .inputTable { margin: 1em auto 1em 0;} 
     16.inputTable { margin: 1em auto 1em 0;width:100%} 
    1717select, input, button { font: 11px Tahoma,Verdana,sans-serif; } 
    1818.buttons { width: 70px; text-align: center; } 
     
    2424table { margin-top:10px; } 
    2525th, td { padding-right:3px; text-align:left; font-family:small-caption,helvetica,sans-serif; } 
    26 .dirWidth {width: 60%} 
     26.dirWidth {width: 59%} 
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r588 r604  
    207207} 
    208208 
     209function pasteButton(action) 
     210{ 
     211        var buttonHolder = document.getElementById('pasteBtn'); 
     212        if (!buttonHolder.firstChild) 
     213        { 
     214                var a = document.createElement('a'); 
     215                        a.href = "javascript:void(0);"; 
     216                         
     217                var img = document.createElement('img'); 
     218                        img.src = window.opener._editor_url+'plugins/ExtendedFileManager/img/edit_paste.gif'; 
     219                        img.alt = i18n('Paste'); 
     220                        a.appendChild(img); 
     221                        buttonHolder.appendChild(a); 
     222        } 
     223        buttonHolder.onclick = function() {   
     224                                if(typeof imgManager != 'undefined') imgManager.paste(action); 
     225                                if (action.action ==  'moveFile' || action.action ==  'moveDir' ) 
     226                                { 
     227                                        this.onclick = null; 
     228                                        this.removeChild(this.firstChild) 
     229                                } 
     230        } 
     231        switch (action.action) 
     232        { 
     233                case 'copyFile': 
     234                        buttonHolder.firstChild.title = i18n('Copy "$file='+action.file+'$" from "$dir='+decodeURIComponent(action.dir)+'$" here');                      
     235                break; 
     236                case 'copyDir': 
     237                        buttonHolder.firstChild.title = i18n('Copy folder "$file='+action.file+'$" from "$dir='+decodeURIComponent(action.dir)+'$" here');               
     238                break; 
     239                case 'moveFile': 
     240                        buttonHolder.firstChild.title = i18n('Move "$file='+action.file+'$" from "$dir='+decodeURIComponent(action.dir)+'$" here'); 
     241                break; 
     242                break; 
     243                case 'moveDir': 
     244                        buttonHolder.firstChild.title = i18n('Move folder "$file='+action.file+'$" from "$dir='+decodeURIComponent(action.dir)+'$" here'); 
     245                break;   
     246        } 
     247         
     248} 
    209249function onCancel() 
    210250{ 
Note: See TracChangeset for help on using the changeset viewer.