Sha256: 51c9a2679d02f6a8ff4967b80d8af6166fa544352d60753a50a93cd8f3529d6a
Contents?: true
Size: 1.3 KB
Versions: 8
Compression:
Stored size: 1.3 KB
Contents
I"#(function() { Turbolinks.enableProgressBar(); Math.uid = function() { return Math.floor(Math.random() * 16777215).toString(16); }; 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).on('init.fndtn', function(a, b, c) { $(a.target).foundation(); return $(a.target).confirmWithReveal(); }); angular.bootstrap($('[role="main"]'), ['push_type']); $(document).trigger('init.fndtn'); 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
8 entries across 8 versions & 2 rubygems