Sha256: 7041948c6896c2dd921a8620635d14cfd8939e0ab0dd9f9fabdd1d3efb714005

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 Bytes

Contents

$('#autosave').html('<%= hidden_field_tag('article[id]', @article.id) %>');
$('#preview_link').replaceWith('<%= link_to('Preview', {:controller => '/articles', :action => 'preview', :id => @article.id}, {:target => 'new', :class => 'btn btn-default'}); %>');
<% if @article.state.to_s.downcase == "draft" %>
  $("#article_published_at").val(<% Time.now() %>);
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
publify_core-9.0.1 app/views/admin/content/autosave.js.erb
publify_core-9.0.0 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre6 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre5 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre4 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre3 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre2 app/views/admin/content/autosave.js.erb
publify_core-9.0.0.pre1 app/views/admin/content/autosave.js.erb