app/views/alchemy/admin/pages/_sitemap.html.erb in alchemy_cms-5.2.7 vs app/views/alchemy/admin/pages/_sitemap.html.erb in alchemy_cms-5.3.0

- old
+ new

@@ -1,13 +1,12 @@ -<div id="sitemap-wrapper"> - <h4 id="sitemap_heading"> - <span class="page_name"><%= Alchemy::Page.human_attribute_name(:name) %></span> - <span class="page_urlname"><%= Alchemy::Page.human_attribute_name(:urlname) %></span> - <span class="page_status"><%= Alchemy.t(:page_status) %></span> - </h4> +<h4 id="sitemap_heading"> + <span class="page_name"><%= Alchemy::Page.human_attribute_name(:name) %></span> + <span class="page_urlname"><%= Alchemy::Page.human_attribute_name(:urlname) %></span> + <span class="page_status"><%= Alchemy.t(:page_status) %></span> +</h4> - <p class="loading"></p> +<div id="sitemap-wrapper"> </div> <script id="sitemap-template" type="text/x-handlebars-template"> <ul id="sitemap" class="list<%= @sorting ? ' sorting' : nil %>"> {{> list}} @@ -20,17 +19,18 @@ {{/each}} </script> <script type="text/javascript"> $(function() { - Alchemy.Sitemap.init({ + Alchemy.currentSitemap = new Alchemy.Sitemap({ url: '<%= alchemy.tree_admin_pages_path %>', page_root_id: <%= @page_root.id %>, full: <%= full %> <% if @sorting %> ,ready: function () { Alchemy.PageSorter(); } <% end %> }); + Alchemy.PagePublicationFields(); }); </script>