summaryrefslogtreecommitdiffstats
path: root/web/static/js/jquery-dragster/README.md
blob: 1c28adaf093f22ad4c85ce01465779c01c618705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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');
	}
});
```