Added event-triggers for dragged status

This commit is contained in:
Erik Tiekstra
2017-05-17 14:14:24 +02:00
parent 6ac64d18bd
commit ae9c75265d
4 changed files with 16 additions and 1 deletions
+7
View File
@@ -1,6 +1,7 @@
'use strict';
(function() {
var $document = $(document);
// Inputs for the editor
var $input = {
w: $('#form-control input[name="w"]'),
@@ -69,4 +70,10 @@
$input.mirror.on('change', Event.Mirror);
$input.noCrop.on('change', Event.NoCrop);
$input.border.on('change', Event.SetBorder);
$document.on('PIE:dragged', function() {
console.log('Now you can buy!');
});
$document.on('PIE:needs-dragging', function() {
console.log('You need to drag to be able to buy!');
});
}());