From 789df20f641116ad607c49d6c6b14e16db736e2c Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 26 Apr 2012 19:10:19 +0200 Subject: [PATCH] MDL-32627 enable ajax by default in new user form This change makes the new user form consistent with install.xml default. I do not think we should discourage ajax any more. --- user/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/editlib.php b/user/editlib.php index 59228ecbc6c..dabeff88b81 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -206,7 +206,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) { $choices['0'] = get_string('ajaxno'); $choices['1'] = get_string('ajaxyes'); $mform->addElement('select', 'ajax', get_string('ajaxuse'), $choices); - $mform->setDefault('ajax', 0); + $mform->setDefault('ajax', 1); } $choices = array();