diff options
author | MaZderMind | 2014-10-20 21:39:54 +0200 |
---|---|---|
committer | MaZderMind | 2014-10-20 21:39:54 +0200 |
commit | 66130de80ca213d7349c578b0cfd6a860f7bc7eb (patch) | |
tree | 9eaaea9a0870e48739adf6583631ae120d576851 /assets/js/lustiges-script.js | |
parent | cbd2ca293077e9deaf47e3ad4676c81e4fd1265c (diff) |
directlink to irc
Diffstat (limited to '')
-rw-r--r-- | assets/js/lustiges-script.js | 10 |
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() { |