Sha256: fffe80254490865affedc1caf166034843fe7351aebc0107d07e997ccce603c9
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
- content_for :toolbar do = link_to t('.create'), new_admin_page_path, :class => 'button' - content_for :scripts do :javascript $("ul.sortable").sortable({ containment: 'parent', update: function(event, ui){ var self = $(ui.item), prev = self.prev(), id = prev.length > 0 ? prev.data('id') : '', sid = self.data('id') $.post('/admin/pages/'+sid, {reposition:id, _method: 'put'}) } }) %ul.pages-root.sortable = render :partial => 'branch', :locals => { :pages => @pages }
Version data entries
4 entries across 4 versions & 1 rubygems