|
|
@@ -587,8 +587,11 @@ $(document).keyup(function(event){
|
|
|
$(".setting .select").each(function() {
|
|
|
|
|
|
if ($(this).hasClass('select_two')) {
|
|
|
- $(this).select2("destroy");
|
|
|
- $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
|
|
|
+ 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");
|
|
|
}
|