blob: 9ff9dac98b9db4b9106cee1f51aba4e95445a293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
(function ($) {
$.fn.clickable = function (click_handler) {
return this.each(function () {
$(this)
.bind('click.interactive', click_handler)
.css({cursor: 'pointer'});
});
};
$.fn.unclickable = function () {
return this.each(function (object) {
$(this)
.unbind('click.interactive')
.css({cursor: 'default'});
});
};
})(jQuery);
|