aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorMaZderMind2014-10-20 21:39:54 +0200
committerMaZderMind2014-10-20 21:39:54 +0200
commit66130de80ca213d7349c578b0cfd6a860f7bc7eb (patch)
tree9eaaea9a0870e48739adf6583631ae120d576851 /assets/js/lustiges-script.js
parentcbd2ca293077e9deaf47e3ad4676c81e4fd1265c (diff)
directlink to irc
Diffstat (limited to 'assets/js/lustiges-script.js')
-rw-r--r--assets/js/lustiges-script.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index 41bb399..f87ca64 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -27,9 +27,15 @@ $(function() {
// adjust tabs when hash changes
$(window).on('hashchange', setTabToHash).trigger('hashchange');
- $('.click-to-irc').one('click', function() {
+ $('.click-to-irc').on('click', function(e) {
+ if($(this).hasClass('activating'))
+ return;
+
+ if($(e.target).hasClass('irclink'))
+ return;
+
var
- $irc = $(this),
+ $irc = $(this).addClass('activating'),
$iframe = $(this).find('iframe');
$iframe.on('load', function() {