Ignore:
Timestamp:
12/10/09 15:25:44 (14 years ago)
Author:
fpcorrea
Message:

Ticket #597 - Melhorias no módulo Gerenciador de Arquivos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/js/draw_api.js

    r1791 r1803  
    408408                                        var filename = nameLink.innerHTML; 
    409409                                        inputName.value = filename; 
    410                                         inputName.onblur = function () { cExecute('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handlerRename) }; 
     410                                        inputName.onclick = function () { oldValue = inputName.value; } 
     411                                        inputName.onblur = function () { if (inputName.value == oldValue) handlerRename(); else cExecute('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handlerRename) }; 
    411412                                        inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 
    412413                                        nameLink.parentNode.appendChild(inputName); 
Note: See TracChangeset for help on using the changeset viewer.