Fixed display of signature editor in preferences

This commit is contained in:
Francis Lachapelle
2012-09-24 15:27:18 -04:00
parent 9f586db2a0
commit 903f6f2d72
2 changed files with 8 additions and 11 deletions

View File

@@ -82,10 +82,6 @@ function savePreferences(sender) {
return false;
}
function onAdjustTime(event) {
// unconditionally called from skycalendar.html
}
function prototypeIfyFilters() {
var newFilters = $([]);
for (var i = 0; i < filters.length; i++) {
@@ -555,7 +551,7 @@ function onMailIdentitySignatureClick(event) {
fields.appendChild(createButton("okBtn", _("OK"),
onMailIdentitySignatureOK));
fields.appendChild(createButton("cancelBtn", _("Cancel"),
disposeDialog.bind(document.body, dialogId)));
disposeDialog));
var dialog = createDialog(dialogId,
_("Signature"),
label,
@@ -590,13 +586,15 @@ function onMailIdentitySignatureClick(event) {
else
area.value = "";
dialog.show();
$("bgDialogDiv").show();
if (CKEDITOR.instances["signature"])
if (Prototype.Browser.IE)
jQuery('#bgDialogDiv').css('opacity', 0.4);
jQuery(dialog).fadeIn('fast', function() {
if (CKEDITOR.instances["signature"])
focusCKEditor();
else
area.focus();
else
area.focus();
});
Event.stop(event);
}
}