Fixed broken image in Image#edit skin when creating a new image
This commit is contained in:
parent
d44e34dd1d
commit
ee01a29997
1 changed files with 6 additions and 2 deletions
|
|
@ -4,14 +4,18 @@ $(function() {
|
|||
if ("<% image.created %>") {
|
||||
$(".name").hide();
|
||||
$(".resize").hide();
|
||||
};
|
||||
} else {
|
||||
$("#image").hide();
|
||||
}
|
||||
if ("<% image.parent_type %>" === "Layout") {
|
||||
$(".tags").hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<p class="storyTitle"><% response.title %></p><br />
|
||||
<div style="width: 100px; overflow: hidden; float: left; margin-right: 10px"><% image.thumbnail %></div>
|
||||
<div id="image" style="width: 100px; overflow: hidden; float: left; margin-right: 10px">
|
||||
<% image.thumbnail %>
|
||||
</div>
|
||||
<form method="post" action="<% response.action %>" enctype="multipart/form-data">
|
||||
<table border="0" width="400" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue