aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-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() {