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

feature #3668: Reinitialize change events

This commit is contained in:
Daniel Molina 2015-03-17 10:58:01 +01:00
parent cdee2c8f3b
commit 6f8ab0b1cd

View File

@ -8207,6 +8207,7 @@ function generateValueSelect(opts){
str += '</select>';
str += '</div>';
$(document).off("change", ".custom_select_input");
$(document).on("change", ".custom_select_input", function(){
var select = $(".custom_select", $(this).closest(".custom_select_container"));
select.val($(this).val());
@ -8216,6 +8217,7 @@ function generateValueSelect(opts){
select.change();
});
$(document).off("change", ".custom_select");
$(document).on("change", ".custom_select", function(){
var container = $(this).closest(".custom_select_container");
if ($(this).val() == "custom") {