summaryrefslogtreecommitdiff
path: root/static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js
diff options
context:
space:
mode:
authorHorus32015-02-27 04:02:15 +0100
committerHorus32015-02-27 04:02:15 +0100
commit6837ddf68f13a1633ea868ab55d71389ca5bc175 (patch)
tree94fbfabdfa4506eb1b2dbf0067a7c0fa87f294c9 /static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js
parent60767a3ea8190d3f070f3aae86c2d72ffb10cfd6 (diff)
downloadstatuspage-6837ddf68f13a1633ea868ab55d71389ca5bc175.tar.gz
Version 0.2. Sends E-Mails now. Also sticky post on index page to quickly inform people. Concatenated all CSS and JavaScript files.
Diffstat (limited to 'static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js')
-rw-r--r--static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js24
1 files changed, 24 insertions, 0 deletions
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]);
+ }
+ }
+ };
+ };
+
+}());