* Refactored Archive due to buggy behaviour of the calendar and general inconsistent code
* Disabled tagging of layout images * Disabled "days" page mode (ie. switched to counting stories only) * Moved Site.href skin to Site#href (subskin) * Fixed minor issues * Edited text and messages
This commit is contained in:
parent
d18a5b95fc
commit
06eed430a8
12 changed files with 181 additions and 165 deletions
|
@ -208,7 +208,9 @@ Image.prototype.update = function(data) {
|
|||
this.writeFiles(image, thumbnail);
|
||||
}
|
||||
|
||||
this.setTags(data.tags || data.tag_array);
|
||||
if (this.parent_type !== "Layout") {
|
||||
this.setTags(data.tags || data.tag_array);
|
||||
}
|
||||
this.description = data.description;
|
||||
this.touch();
|
||||
return;
|
||||
|
|
|
@ -31,8 +31,11 @@ paste the following code:' %> <pre><% image.macro %></pre></p>
|
|||
$(document).ready(function() {
|
||||
if ("<% image.created %>") {
|
||||
$(".name").hide();
|
||||
$(".resize").hide();
|
||||
$(".resize").hide();
|
||||
};
|
||||
if ("<% image.parent_type %>" === "Layout") {
|
||||
$(".tags").hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<p class="storyTitle"><% response.title %></p><br />
|
||||
|
@ -55,7 +58,7 @@ $(document).ready(function() {
|
|||
<td class="small" valign="top"><% gettext Description suffix=: %></td>
|
||||
<td><% image.textarea description %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="tags">
|
||||
<td class="small" valign="top"><% gettext Tags suffix=: %></td>
|
||||
<td><% image.input tags %></td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue