Enabled upload progress indicator (text-only)
This commit is contained in:
parent
bc855cbfcd
commit
9093ebba46
2 changed files with 9 additions and 1 deletions
|
@ -855,6 +855,11 @@ class calendar extends rcube_plugin
|
|||
*/
|
||||
public function attachment_upload()
|
||||
{
|
||||
// Upload progress update
|
||||
if (!empty($_GET['_progress'])) {
|
||||
rcube_upload_progress();
|
||||
}
|
||||
|
||||
$event = get_input_value('_id', RCUBE_INPUT_GPC);
|
||||
$calendar = get_input_value('calendar', RCUBE_INPUT_GPC);
|
||||
$uploadid = get_input_value('_uploadid', RCUBE_INPUT_GPC);
|
||||
|
|
|
@ -350,7 +350,7 @@ class calendar_ui
|
|||
case 'monthly':
|
||||
$select = $this->interval_selector(array('name' => 'interval', 'class' => 'edit-recurrence-interval', 'id' => 'edit-recurrence-interval-monthly'));
|
||||
$html = html::div($attrib, html::label(null, $this->calendar->gettext('every')) . $select->show(1) . html::span('label-after', $this->calendar->gettext('months')));
|
||||
|
||||
|
||||
/* multiple month selection is not supported by Kolab
|
||||
$checkbox = new html_radiobutton(array('name' => 'bymonthday', 'class' => 'edit-recurrence-monthly-bymonthday'));
|
||||
for ($monthdays = '', $d = 1; $d <= 31; $d++) {
|
||||
|
@ -471,6 +471,9 @@ class calendar_ui
|
|||
if (!$attrib['id'])
|
||||
$attrib['id'] = 'rcmUploadForm';
|
||||
|
||||
// Enable upload progress bar
|
||||
rcube_upload_progress_init();
|
||||
|
||||
// find max filesize value
|
||||
$max_filesize = parse_bytes(ini_get('upload_max_filesize'));
|
||||
$max_postsize = parse_bytes(ini_get('post_max_size'));
|
||||
|
|
Loading…
Add table
Reference in a new issue