editable tags by default, and hide .edit by default

This commit is contained in:
Shish 2012-02-11 00:52:42 +00:00
parent c627e564c4
commit a93247327a
3 changed files with 5 additions and 7 deletions

View file

@ -25,8 +25,8 @@ class TagEditTheme extends Themelet {
<tr>
<td width='50px'>Tags</td>
<td width='300px'>
<span class='view'>$h_tags</span>
<input class='edit' type='text' name='tag_edit__tags' value='$h_tags' class='autocomplete_tags' id='tag_editor'>
<!--<span class='view'>$h_tags</span>-->
<input type='text' name='tag_edit__tags' value='$h_tags' class='autocomplete_tags' id='tag_editor' onfocus='$(\".view\").hide(); $(\".edit\").show();'>
</td>
</tr>
";

View file

@ -86,11 +86,6 @@ class ViewImageTheme extends Themelet {
$html .= "
</table>
</form>
<script>
$(function() {
$('.edit').hide();
});
</script>
";
return $html;
}

View file

@ -241,3 +241,6 @@ UL {
text-align: right;
padding-right: 4px;
}
.image_info .edit {
display: none;
}