Skip to content

Commit

Permalink
* 修复后台文件添加编辑相册图片移除浏览器不兼容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
simplewindorg committed Nov 10, 2016
1 parent 6d627c4 commit b1759b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/themes/simplebootx/Portal/AdminPost/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input id="photo-{id}-name" type="text" name="photos_alt[]" value="{name}" style="width: 160px;" title="图片名称">
<img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;" onclick="parent.image_preview_dialog(this.src);">
<a href="javascript:upload_one_image('图片上传','#photo-{id}');">替换</a>
<a href="javascript:$('#savedimage{id}').remove();">移除</a>
<a href="javascript:(function(){$('#savedimage{id}').remove();})();">移除</a>
</li>
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/simplebootx/Portal/AdminPost/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<input id="photo-{id}-name" type="text" name="photos_alt[]" value="{name}" style="width: 160px;" title="图片名称">
<img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;" onclick="parent.image_preview_dialog(this.src);">
<a href="javascript:upload_one_image('图片上传','#photo-{id}');">替换</a>
<a href="javascript:$('#savedimage{id}').remove();">移除</a>
<a href="javascript:(function(){$('#savedimage{id}').remove();})();">移除</a>
</li>
</script>
</head>
Expand Down Expand Up @@ -78,7 +78,7 @@
<input id="photo-{$key}-name" type="text" name="photos_alt[]" value="{$vo.alt}" style="width: 200px;" title="图片名称">
<img id="photo-{$key}-preview" src="{:sp_get_image_preview_url($vo['url'])}" style="height:36px;width: 36px;" onclick="parent.image_preview_dialog(this.src);">
<a href="javascript:upload_one_image('图片上传','#photo-{$key}');">替换</a>
<a href="javascript:$('#savedimage{$key}').remove();">移除</a>
<a href="javascript:(function(){ $('#savedimage{$key}').remove();})();">移除</a>
</li>
</foreach>
</notempty>
Expand Down

0 comments on commit b1759b4

Please sign in to comment.