Fix over-sized "Upload" and "From cloud..." buttons

This commit is contained in:
Aleksander Machniak 2015-10-30 11:02:57 +01:00
parent 8c9bdc4571
commit 07742bd661
5 changed files with 7 additions and 7 deletions

View file

@ -616,7 +616,7 @@ class calendar_ui
return html::div($attrib,
html::div(null, $input->show()) .
html::div('formbuttons', $button->show($this->rc->gettext('upload'), array('class' => 'button mainaction',
html::div('buttons', $button->show($this->rc->gettext('upload'), array('class' => 'button mainaction',
'onclick' => rcmail_output::JS_OBJECT_NAME . ".upload_file(this.form)"))) .
html::div('hint', $this->rc->gettext(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize))))
);

View file

@ -640,7 +640,7 @@ a.miniColors-trigger {
border-top: 2px solid #fafafa;
}
#edit-attachments-form .formbuttons {
#edit-attachments-form .buttons {
margin: 0.5em 0;
}

View file

@ -57,7 +57,7 @@ window.rcmail && window.files_api && rcmail.addEventListener('init', function()
// add "attach from cloud" button for event/task dialog in mail
rcmail.addEventListener('plugin.mail2event_dialog', function() {
if (!$('#calendar-attachment-form input.fromcloud').length)
kolab_files_from_cloud_widget($('#calendar-attachment-form > div.formbuttons'));
kolab_files_from_cloud_widget($('#calendar-attachment-form > div.buttons'));
});
}
@ -66,13 +66,13 @@ window.rcmail && window.files_api && rcmail.addEventListener('init', function()
else if (rcmail.task == 'calendar') {
// add "attach from cloud" button for event dialog
if (!rcmail.env.action)
kolab_files_from_cloud_widget($('#calendar-attachment-form > div.formbuttons'));
kolab_files_from_cloud_widget($('#calendar-attachment-form > div.buttons'));
kolab_files_init();
}
else if (rcmail.task == 'tasks') {
// add "attach from cloud" button for task dialog
if (!rcmail.env.action)
kolab_files_from_cloud_widget($('#taskedit-attachment-form > div.formbuttons'));
kolab_files_from_cloud_widget($('#taskedit-attachment-form > div.buttons'));
kolab_files_init();
}
else if (rcmail.task == 'files') {

View file

@ -912,7 +912,7 @@ a.morelink:hover {
width: 97%;
}
#taskeditform .formbuttons {
#taskeditform .buttons {
margin: 0.5em 0;
}

View file

@ -447,7 +447,7 @@ class tasklist_ui
return html::div($attrib,
html::div(null, $input->show()) .
html::div('formbuttons', $button->show($this->rc->gettext('upload'), array('class' => 'button mainaction',
html::div('buttons', $button->show($this->rc->gettext('upload'), array('class' => 'button mainaction',
'onclick' => rcmail_output::JS_OBJECT_NAME . ".upload_file(this.form)"))) .
html::div('hint', $this->rc->gettext(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize))))
);