Permalink
Browse files

MDl-36352 Calendar: Moved poll interval next to url field for accessi…

…bility
  • Loading branch information...
1 parent 3e2efe3 commit 39bd8a5c59fc44a657a79c2c2bcc84ea43cf961f Rajesh Taneja committed Nov 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 calendar/managesubscriptions_form.php
@@ -60,16 +60,16 @@ public function definition() {
$mform->addElement('text', 'url', get_string('importfromurl', 'calendar'), array('maxsize' => '255', 'size' => '50'));
$mform->setType('url', PARAM_URL);
- // Import file
- $mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar'));
-
// Poll interval
$choices = calendar_get_pollinterval_choices();
$mform->addElement('select', 'pollinterval', get_string('pollinterval', 'calendar'), $choices);
$mform->setDefault('pollinterval', 604800);
$mform->addHelpButton('pollinterval', 'pollinterval', 'calendar');
$mform->setType('pollinterval', PARAM_INT);
+ // Import file
+ $mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar'));
+
// Disable appropriate elements depending on import from value.
$mform->disabledIf('pollinterval', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);
$mform->disabledIf('url', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);

0 comments on commit 39bd8a5

Please sign in to comment.