Change click() to change() so that we immediately update the UI when

the user picks a new option.
This commit is contained in:
Bharat Mediratta
2009-09-05 21:14:25 -07:00
parent b3d0cb5a4c
commit d8f5b0f5a3
@@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= form::dropdown("gSelectSessionLocale", $installed_locales, $selected) ?>
<script type="text/javascript">
$("#gSelectSessionLocale").click(function() {
$("#gSelectSessionLocale").change(function() {
var old_locale_preference = <?= html::js_string($selected) ?>;
var locale = $(this).val();
if (old_locale_preference == locale) {