feature #3668: Reinitialize change events

This commit is contained in:
Daniel Molina committed 2015-03-17 10:58:01 +01:00
1 parent cdee2c8f3b
commit 6f8ab0b1cd
1 file changed
+2
+2
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") {