summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-17 18:21:07 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-17 18:21:07 +0000
commitfee7af26602ff8426035457b7fd3bce9b2bd5f3e (patch)
tree18a188f4c466b83cd525719534c3d6adf1b72d01 /roundcubemail/program
parent4683af0285637c6f46a7845e7db76da6f04965ac (diff)
- use popupmenu style for attachments upload form
- move .popupmenu style definition to common.css git-svn-id: https://svn.roundcube.net/trunk@3375 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js6
-rw-r--r--roundcubemail/program/steps/mail/compose.inc2
2 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 7aca3d8de..87ee76c8f 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -2832,7 +2832,7 @@ function rcube_webmail()
{
if (!this.gui_objects.uploadbox)
return false;
-
+
var elm, list;
if (elm = this.gui_objects.uploadbox)
{
@@ -2842,8 +2842,8 @@ function rcube_webmail()
elm.style.top = (pos.top + list.offsetHeight + 10) + 'px';
elm.style.left = pos.left + 'px';
}
-
- elm.style.visibility = a ? 'visible' : 'hidden';
+
+ $(elm).toggle();
}
// clear upload form
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index a5b0a340e..a8b2fa5f2 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -901,7 +901,7 @@ function rcmail_compose_attachment_form($attrib)
html::div(null, rcmail_compose_attachment_field(array('size' => $attrib[attachmentfieldsize]))) .
html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) .
html::div('buttons',
- $button->show(rcube_label('close'), array('class' => 'button', 'onclick' => "document.getElementById('$attrib[id]').style.visibility='hidden'")) . ' ' .
+ $button->show(rcube_label('close'), array('class' => 'button', 'onclick' => "$('#$attrib[id]').hide()")) . ' ' .
$button->show(rcube_label('upload'), array('class' => 'button mainaction', 'onclick' => JS_OBJECT_NAME . ".command('send-attachment', this.form)"))
)
)