lvhao пре 1 дан
родитељ
комит
fa2f0ed98e
1 измењених фајлова са 2 додато и 10 уклоњено
  1. 2 10
      template/erp/whlabel_print.html

+ 2 - 10
template/erp/whlabel_print.html

@@ -582,19 +582,11 @@ $(document).keyup(function(event){
               var list =  a.features;
 	list = list.substring(0,list.length-1);
 	var data = list.split("-");
+    $(".select_two").select2("destroy")
 	for(i=1;i<data.length+1;i++)
 	{
 		$(".setting .select").each(function() {
-		    
-            if ($(this).hasClass('select_two')) {
-                if($(this).find("option[value='"+data[i]+"']")){
-                    $(this).select2("destroy");
-                    $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
-                }
-               
-            }else{
-                $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
-            }
+            $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
         });
 		$("input:radio[value='"+data[i]+"']").attr('checked','true');
 	}