From 5feca57e1712a76241009f349006ea27e1655eef Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 00:27:20 +0000 Subject: [PATCH] MDL-19807 Upgraded call to button_to_popup_window --- mod/feedback/import.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); + ?> -- 2.39.5