From ae17550a8f24efb76110fb6cdb8d40b5bd50006b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 4 Jul 2016 12:39:20 +0200 Subject: [PATCH] Bug #4591: Fix GB inputs in firefox --- src/sunstone/public/app/utils/user-inputs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/app/utils/user-inputs.js b/src/sunstone/public/app/utils/user-inputs.js index f70a2096e8..c870d64235 100644 --- a/src/sunstone/public/app/utils/user-inputs.js +++ b/src/sunstone/public/app/utils/user-inputs.js @@ -528,7 +528,7 @@ define(function(require) { function _setupAttributeInputMB(context) { // MB to GB - $("div.mb_input", context).on("input", "input, select", function(){ + $("div.mb_input", context).on("change", "input, select", function(){ var val = ""; if (this.value && this.value >= 0) { @@ -539,7 +539,7 @@ define(function(require) { }); // GB to MB - $("div.gb_input", context).on("input", "input, select", function(){ + $("div.gb_input", context).on("change", "input, select", function(){ var val = ""; if (this.value && this.value >= 0) { @@ -559,7 +559,7 @@ define(function(require) { $("div.mb_input", context).hide(); gb_inputs.appendTo($("div.gb_input", context)); - $("div.mb_input input,select",context).trigger("input"); + $("input, select", $("div.mb_input",context)).trigger("change"); } else { $("div.mb_input", context).show(); gb_inputs = $("div.gb_input", context).children().detach();