Skip to content
Snippets Groups Projects
Commit 72b35fb5 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents ec938279 dd977698
No related branches found
No related tags found
No related merge requests found
.treeview
&__branch, &__leaf
& > .treeview__label
& > .move_btn
display: none
&:hover
& > .treeview__label
& > .move_btn
display: inline
&__branch
& > .treeview__label
& > a .close_btn
......
......@@ -10,9 +10,6 @@ class Admin::Communication::Website::PagesController < Admin::Communication::Web
return unless request.xhr?
@page = @website.pages.find(params[:id])
@children = @page.children.ordered
# respond_to do |format|
# format.html { render :layout => false }
# end
end
def show
......
$branch = $('.js-treeview-branch[data-id=<%= @page.id %>]');
$('.js-treeview-children', $branch).html("<%= escape_javascript(render 'treebranch', pages: @children) %>");
$branch.addClass('treeview__branch--loaded');
window.osuny.treeView.initSortable();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment