mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-13 16:37:52 +00:00
b54e611797
change files order, new DHT indicator in top menu, ‘back’ button in DM conversations, sound notifications (alpha) and new page ‘Options’, few fixes
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
(function(jQuery) {
|
|
jQuery.fn.clickoutside = function(callback) {
|
|
var outside = 1, self = $(this);
|
|
self.cb = callback;
|
|
this.click(function() {
|
|
outside = 0;
|
|
});
|
|
$(document).click(function() {
|
|
outside && self.cb();
|
|
outside = 1;
|
|
});
|
|
return $(this);
|
|
}
|
|
})(jQuery); |