Sha256: ecb2161a4c677d326ef0b9a6c65e5aef29ccf6a6c18f35494d1d149ed80c9ba0
Contents?: true
Size: 519 Bytes
Versions: 16
Compression:
Stored size: 519 Bytes
Contents
// TODO: Extract this so the server only renders the HTML. var li = $('li#comfy_cms_page_<%=@page.id%>'); li.find('.item .toggle').first().toggleClass('open'); <% if session[:cms_page_tree].member?(@page.id.to_s) %> if(!li.find('ul.children')[0]) { li.append('<ul class="children sortable pl-md-3"><%= escape_javascript(render partial: "index_branch", collection: @page.children) %></ul>'); CMS.sortableList.dispose(); CMS.sortableList.init(); } <% else %> li.find('ul.children').remove(); <% end %>
Version data entries
16 entries across 16 versions & 7 rubygems