Sha256: aaa142cd3562aff231dddfe88366d78c8c1ba79f8b34224db0b9b08645d41b01
Contents?: true
Size: 1.1 KB
Versions: 17
Compression:
Stored size: 1.1 KB
Contents
I"V(function() { Turbolinks.enableProgressBar(); this.app = angular.module('push_type', ['ui.tree']); this.app.run([ '$http', function($http) { $http.defaults.headers.common['Accept'] = 'application/json'; return $http.defaults.headers.common['Content-Type'] = 'application/json'; } ]); this.app.directive('sidePanel', function() { return function(scope, $el, attrs) { return $el.sticky({ topSpacing: 80, getWidthFrom: '.sticky-wrapper', responsiveWidth: true }); }; }); $(document).on('ready page:load', function() { $(document).foundation(); $(document).confirmWithReveal(); angular.bootstrap($('[role="main"]'), ['push_type']); return $('.node-list.sortable').sortable({ handle: '.handle', forcePlaceholderSize: true }).on('sortupdate', function(e, ui) { var obj; obj = { prev: ui.item.prev().data('id'), next: ui.item.next().data('id') }; return $.post("/push_type/nodes/" + (ui.item.data('id')) + "/position", obj, 'json'); }); }); }).call(this); :ET
Version data entries
17 entries across 17 versions & 3 rubygems