Skip to content

Commit

Permalink
Fixed add tags issue added second submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Mar 10, 2010
1 parent 1be38ed commit e7f7e30
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions vendor/modules/blog/app/views/blog/manage/post.rhtml
Expand Up @@ -17,7 +17,7 @@
},

selectTags: function() {
SCMS.remoteOverlay("<%= url_for :action => 'add_tags' %>", { existing_tags: $('entry_tags').value } );
SCMS.remoteOverlay("<%= url_for :action => 'add_tags', :path => @blog.id %>", { existing_tags: $('entry_tags').value } );
},

addTagInPopup: function(tag_name) {
Expand Down Expand Up @@ -125,12 +125,18 @@
<label for='entry_status_post_date'><input onclick='PostEditor.updateStatus();' id='entry_status_post_date' name='update_entry[status]' value='post_date' type='radio' <%= "checked='checked'" if @entry.status == 'published' && ( !@entry.published_at || @entry.published_at > Time.now ) %> type='radio'><%= "Post Date".t %><br/>
<% cms_subfields_for :entry_update, @entry do |t| %>
<table><%= t.datetime_field :published_at, :label => '', :blank => true, :disabled => !(@entry.status == 'published' && ( !@entry.published_at || @entry.published_at > Time.now ) ) %></table>

<% end -%>

</div>

<div align='center'>
<% cms_unstyled_fields_for :revision, @revision do |f| %>
<%= f.submit_tag @entry.id ? 'Update Entry' : 'Create Entry' %>
<% end -%>
</div>
</td>
</table>


</form>

</div>

0 comments on commit e7f7e30

Please sign in to comment.