Show folder name in dialog when renaming folder

pull/21/merge
Francis Lachapelle 2014-03-06 21:25:48 -05:00
parent 31ace947cb
commit 28b1938bd9
3 changed files with 7 additions and 2 deletions

1
NEWS
View File

@ -3,6 +3,7 @@
Enhancements
- updated Czech, Finnish, and Hungarian translations
- show current folder name in prompt dialog when renaming a mail folder
Bug fixes
- fixed an issue with ActiveSync when the number of messages in the mailbox was greater than the window-size specified by the client

View File

@ -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() {

View File

@ -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) {