-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.js
More file actions
47 lines (44 loc) · 1.41 KB
/
application.js
File metadata and controls
47 lines (44 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascript, vendor/assets/javascript,
// or vendor/assets/javascript of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require jquery.timeago
//= require turbolinks
//= require foundation
//= require details.polyfill
//= require_tree .
const images = require.context('../images', true)
$(function(){ $(document).foundation(); });
$(document).ready(function () {
$('#PCL').sortable({
axis: 'y',
dropOnEmpty: false,
handle: '.handle',
cursor: 'ns-resize',
items: 'li',
opacity: 0.4,
scroll: true,
update: function () {
$.ajax({
type: 'post',
data: $('#PCL').sortable('serialize'),
dataType: 'script',
complete: function () {
$('#PCL').effect('highlight');
},
url: $(this).data('url')
});
}
});
});