diff options
| author | Horus3 | 2015-02-27 04:02:15 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-27 04:02:15 +0100 |
| commit | 6837ddf68f13a1633ea868ab55d71389ca5bc175 (patch) | |
| tree | 94fbfabdfa4506eb1b2dbf0067a7c0fa87f294c9 /static/js/kbjr-DragDrop-906d7ff/jquery.dragdrop.js | |
| parent | 60767a3ea8190d3f070f3aae86c2d72ffb10cfd6 (diff) | |
| download | statuspage-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.js | 24 |
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]); + } + } + }; + }; + +}()); |
