Solved bug in Selenium tests (off('change')) (#567)

(cherry picked from commit a841f0db4b)
This commit is contained in:
Abel Coronado authored and Ruben S. Montero committed 2017-11-10 11:15:53 +01:00
1 parent f5178fe60d
commit e167aaad84
1 file changed
+4 -1
@@ -106,7 +106,7 @@ define(function(require) {
TemplateTable.setup(strippedTemplate, RESOURCE, this.element.ID, context, hiddenValues);
// Change table Order
context.off("click", "#div_edit_table_order")
context.off("click", "#div_edit_table_order");
context.on("click", "#div_edit_table_order", function() {
$(".value_td_table_order", context).html("<select id=\"table_order_select\">" +
"<option> </option>" +
@@ -119,6 +119,7 @@ define(function(require) {
}
});
context.off("change", "#table_order_select");
context.on("change", "#table_order_select", function() {
var sunstone_setting = {TABLE_ORDER : $(this).val()};
if (sunstone_setting.TABLE_ORDER !== ""){
@@ -139,6 +140,7 @@ define(function(require) {
}
});
context.off("change", "#language_select");
context.on("change", "#language_select", function() {
var sunstone_setting = {LANG : $(this).val()};
if (sunstone_setting.LANG !== ""){
@@ -163,6 +165,7 @@ define(function(require) {
}
});
context.off("change", "#view_select");
context.on("change", "#view_select", function() {
var sunstone_setting = {DEFAULT_VIEW : $(this).val()};
if (sunstone_setting.DEFAULT_VIEW !== ""){