Sha256: ff666960d09cfe360bc26653beeded0ca47a9c8d40264b07ad84366e68351a91
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
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.sortable_list(); } <% else %> li.find('ul.children').remove(); <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems