From 6837ddf68f13a1633ea868ab55d71389ca5bc175 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Fri, 27 Feb 2015 04:02:15 +0100 Subject: Version 0.2. Sends E-Mails now. Also sticky post on index page to quickly inform people. Concatenated all CSS and JavaScript files. --- static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js (limited to 'static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js') diff --git a/static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js b/static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js new file mode 100644 index 0000000..7186949 --- /dev/null +++ b/static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js @@ -0,0 +1,24 @@ +(function() { + + $.fn.dragdrop = function(opts) { + opts = opts || { }; + + var bindings = [ ]; + this.each(function() { + var options = $.extend({ }, opts); + if (typeof options.anchor === 'string') { + options.anchor = $(options.anchor, this)[0]; + } + bindings.push(DragDrop.bind(this, options)); + }); + + return { + unbind: function() { + for (var i = 0, c = bindings.length; i < c; i++) { + DragDrop.unbind(bindings[i]); + } + } + }; + }; + +}()); -- cgit v1.2.3