diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-11 11:42:31 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-12 12:29:57 -0700 |
commit | 9f9d93e6133ffd2523546e27e9099e2e6f436506 (patch) | |
tree | 7ad5b88908a4a3a15a995b9531ceec7c8e05c166 /web/static/js/jquery-dragster/README.md | |
parent | 9baafdb372d92c96a4063f11531f4fb5d9e7059e (diff) | |
download | chat-9f9d93e6133ffd2523546e27e9099e2e6f436506.tar.gz chat-9f9d93e6133ffd2523546e27e9099e2e6f436506.tar.bz2 chat-9f9d93e6133ffd2523546e27e9099e2e6f436506.zip |
Switched to using the jquery-dragster library to implement more consistent drag and drop support, rather than using the inconsistent html5 implementation
Diffstat (limited to 'web/static/js/jquery-dragster/README.md')
-rw-r--r-- | web/static/js/jquery-dragster/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/static/js/jquery-dragster/README.md b/web/static/js/jquery-dragster/README.md new file mode 100644 index 000000000..1c28adaf0 --- /dev/null +++ b/web/static/js/jquery-dragster/README.md @@ -0,0 +1,17 @@ +Include [jquery.dragster.js](https://rawgithub.com/catmanjan/jquery-dragster/master/jquery.dragster.js) in page. + +Works in IE. + +```javascript +$('.element').dragster({ + enter: function (dragsterEvent, event) { + $(this).addClass('hover'); + }, + leave: function (dragsterEvent, event) { + $(this).removeClass('hover'); + }, + drop: function (dragsterEvent, event) { + $(this).removeClass('hover'); + } +}); +```
\ No newline at end of file |