Showing
2 changed files
with
5 additions
and
5 deletions
@@ -47,12 +47,13 @@ $(document).on("click","#TagsSelectBtn",function(){ | @@ -47,12 +47,13 @@ $(document).on("click","#TagsSelectBtn",function(){ | ||
47 | g.init('/guang/tags/getList'); | 47 | g.init('/guang/tags/getList'); |
48 | }); | 48 | }); |
49 | $(document).on("click",".tag a",function(){ | 49 | $(document).on("click",".tag a",function(){ |
50 | - var index=$(this).data("index"); | ||
51 | - g.selected.splice(index,1); | 50 | + g.selected.splice($(this).data("index"),1); |
52 | $("#taglist").html(common.util.__template2($("#template4").html(),{tags:g.selected})); | 51 | $("#taglist").html(common.util.__template2($("#template4").html(),{tags:g.selected})); |
53 | return false; | 52 | return false; |
54 | }); | 53 | }); |
55 | - | 54 | +$(document).on("click","#addBrands",function(){ |
55 | + | ||
56 | +}); | ||
56 | var e=new common.edit("#panel-body",{}); | 57 | var e=new common.edit("#panel-body",{}); |
57 | e.init(); | 58 | e.init(); |
58 | 59 |
@@ -154,8 +154,7 @@ | @@ -154,8 +154,7 @@ | ||
154 | <ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;"> | 154 | <ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;"> |
155 | <li class="cover-image-item fileinput-button"> | 155 | <li class="cover-image-item fileinput-button"> |
156 | <div class="goods-img"> | 156 | <div class="goods-img"> |
157 | - <a class="fileinput-button-icon" href="javascript:void(0);">+</a> | ||
158 | - <input type="file" class="goods-img-upload picfile" name="picfile" required="required" placeholder="图片"> | 157 | + <a class="fileinput-button-icon" href="javascript:void(0);" id="addBrands">+</a> |
159 | </div> | 158 | </div> |
160 | </li> | 159 | </li> |
161 | </ul> | 160 | </ul> |
-
Please register or login to post a comment