app/views/admin/pages/_form.html.erb in tb_cms-1.1.0 vs app/views/admin/pages/_form.html.erb in tb_cms-1.1.1

- old
+ new

@@ -9,16 +9,16 @@ </div> </fieldset> <div id="page_partials_form" class="formtabs tab-content"> <ul class="formtab_buttons nav nav-tabs"> </ul> - <%=f.fields_for :spud_page_partials do |b|%> + <%= f.fields_for :spud_page_partials do |b| %> <div class="formtab tab-pane"> - <%=b.hidden_field :name,:class => "tab_name"%> - <%=b.text_area :content,:class => "tinymce"%> + <%= b.hidden_field :name,:class => "tab_name" %> + <%= b.text_area :content,:class => "tinymce" %> </div> - <%end%> + <% end %> </div> <br /> <fieldset> <legend>Advanced Settings (optional)</legend> @@ -88,8 +88,11 @@ <div class="controls"> <%=f.text_area :notes,:style =>"width:400px;height:40px;"%> <span class="help-inline">Have a note to make about this page while you work? Place it here for later.</span> </div> </div> - <%=hidden_field_tag "preview",:value => 0%> + <%= hidden_field_tag "preview", 0 %> </fieldset> +<script type="text/javascript"> + $(document).ready(spud.admin.cms.pages.edit); +</script>