From: nicolasconnault Date: Thu, 6 Aug 2009 00:27:20 +0000 (+0000) Subject: MDL-19807 Upgraded call to button_to_popup_window X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5feca57e1712a76241009f349006ea27e1655eef;p=moodle.git MDL-19807 Upgraded call to button_to_popup_window --- diff --git a/mod/feedback/import.php b/mod/feedback/import.php index 15d82c3a2c..3d28e0ab12 100644 --- a/mod/feedback/import.php +++ b/mod/feedback/import.php @@ -120,8 +120,14 @@   - id}&choose=form.choosefile", - "coursefiles", get_string('choosefile', 'feedback'), 500, 750, get_string('choosefile', 'feedback')); ?> + button->text = get_string('choosefile', 'feedback'); + $form->button->title = $form->button->text; + $form->url = "/files/index.php?id={$course->id}&choose=form.choosefile"; + $form->button->add_action(new popup_action('click', $form->url, "coursefiles", array('width' => 750, 'height' => 500))); + echo $OUTPUT->button($form); + ?>