songxingwei пре 3 година
родитељ
комит
baa6d4f792
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      application/store/view/article/form.html

+ 6 - 1
application/store/view/article/form.html

@@ -118,7 +118,12 @@
                     $.each(data, function(index, quiz1) {
                         $('#cate').append('<input type="radio" name="cate" lay-filter="cate" value="' + quiz1.id + '" title="'+ quiz1.name +'">');
                     })
-                    $("input[name=type][value='+ value +']").prop("checked",true);
+                    if (value==1){
+                        $("input[name=type][value='1']").prop("checked",true);
+                    }else if (value==2){
+                        $("input[name=type][value='2']").prop("checked",true);
+                    }
+
                     form.render('radio')
                 },
                 error:function(o){