Added event-triggers for dragged status
This commit is contained in:
@@ -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!');
|
||||
});
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user