1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Abel Coronado 2017-11-10 11:13:46 +01:00 committed by Ruben S. Montero
parent 5989058b56
commit a841f0db4b

View File

@ -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 !== ""){