summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 23:23:43 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 23:23:43 +0000
commit059d9eb62589d5bf6585c6a991e07b6fc8df544b (patch)
tree6eeee0995c1fb24e52588b8992facbaceff6efc3 /modules/field_ui
parent720175b3f119f2911149b517000347a1447e5033 (diff)
downloadbrdo-059d9eb62589d5bf6585c6a991e07b6fc8df544b.tar.gz
brdo-059d9eb62589d5bf6585c6a991e07b6fc8df544b.tar.bz2
#679374 by casey: Fixed The 'Manage fields' dropdown box not updated instantly in webkit.
Diffstat (limited to 'modules/field_ui')
-rw-r--r--modules/field_ui/field_ui.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/field_ui/field_ui.js b/modules/field_ui/field_ui.js
index aea5cfb5f..b8b8e484b 100644
--- a/modules/field_ui/field_ui.js
+++ b/modules/field_ui/field_ui.js
@@ -21,7 +21,7 @@ function attachUpdateSelects(context) {
$('#field-overview .field-type-select', context).each(function () {
this.targetSelect = $('.widget-type-select', $(this).parents('tr').eq(0));
- $(this).bind('mouseup keyup', function () {
+ $(this).bind('change keyup', function () {
var selectedFieldType = this.options[this.selectedIndex].value;
var options = (selectedFieldType in widgetTypes ? widgetTypes[selectedFieldType] : []);
this.targetSelect.fieldPopulateOptions(options);
@@ -29,7 +29,7 @@ function attachUpdateSelects(context) {
// Trigger change on initial pageload to get the right widget options
// when field type comes pre-selected (on failed validation).
- $(this).trigger('mouseup');
+ $(this).trigger('change', false);
});
// 'Existing field' select updates its 'Widget' select and 'Label' textfield.
@@ -37,7 +37,7 @@ function attachUpdateSelects(context) {
this.targetSelect = $('.widget-type-select', $(this).parents('tr').eq(0));
this.targetTextfield = $('.label-textfield', $(this).parents('tr').eq(0));
- $(this).change(function (e, updateText) {
+ $(this).bind('change keyup', function (e, updateText) {
var updateText = (typeof updateText == 'undefined' ? true : updateText);
var selectedField = this.options[this.selectedIndex].value;
var selectedFieldType = (selectedField in fields ? fields[selectedField].type : null);