mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
Show folder name in dialog when renaming folder
This commit is contained in:
1 parent
31ace947cb
commit
28b1938bd9
3 files changed
+7
-2
No files matched your search
@@ -2309,7 +2309,8 @@ function onMenuCreateFolderConfirm(event) {
|
||||
}
|
||||
|
||||
function onMenuRenameFolder(event) {
|
||||
showPromptDialog(_("Rename Folder..."), _("Enter the new name of your folder :"), onMenuRenameFolderConfirm);
|
||||
var folderName = document.menuTarget.down('.nodeName').childNodes[0].nodeValue;
|
||||
showPromptDialog(_("Rename Folder..."), _("Enter the new name of your folder :"), onMenuRenameFolderConfirm, folderName);
|
||||
}
|
||||
|
||||
function onMenuRenameFolderConfirm() {
|
||||
|
||||
@@ -2157,7 +2157,10 @@ function _showPromptDialog(title, label, callback, defaultValue) {
|
||||
}
|
||||
if (Prototype.Browser.IE)
|
||||
jQuery('#bgDialogDiv').css('opacity', 0.4);
|
||||
jQuery(dialog).fadeIn('fast', function () { dialog.down("input").focus(); });
|
||||
jQuery(dialog).fadeIn('fast', function () {
|
||||
var input = dialog.down("input");
|
||||
input.selectText(0, input.value.length);
|
||||
});
|
||||
}
|
||||
|
||||
function showSelectDialog(title, label, options, button, callbackFcn, callbackArg, defaultValue) {
|
||||
|
||||
Reference in new issue
Block a user