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

+ 1 - 5
template/erp/whlabel_print.html

@@ -588,11 +588,7 @@ $(document).keyup(function(event){
 		    
             if ($(this).hasClass('select_two')) {
                 $(this).select2("destroy");
-                $(this).select2({
-                    placeholder: "请选择",
-                    allowClear: true,
-                });
-                $(this).val(data[i]).trigger('change');
+                $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
             }else{
                 $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
             }