diff --git a/changelog.html b/changelog.html index 7bb71f10..1ef3147b 100644 --- a/changelog.html +++ b/changelog.html @@ -1,3 +1,15 @@ +
' + output + '
'; - - //jQuery('.ffz-tooltip', pbody).tipsy({html: true, title: f.render_tooltip(), gravity: utils.tooltip_placement(2*constants.TOOLTIP_DISTANCE, 'n')}); - //jQuery('.html-tooltip', pbody).tipsy({html: true, gravity: utils.tooltip_placement(2*constants.TOOLTIP_DISTANCE, 'n')}); } }); } diff --git a/src/ember/following.js b/src/ember/following.js index 5e63c342..1d45d7c4 100644 --- a/src/ember/following.js +++ b/src/ember/following.js @@ -121,7 +121,7 @@ FFZ.prototype.modify_twitch_profile_card = function(component) { var el = this.get('element'); el.classList.add('ffz-processed'); - jQuery('.aspect', el).tipsy(); + jQuery('.aspect', el).zipsy(); if ( ! f.settings.enhance_profile_following ) return; @@ -239,7 +239,7 @@ FFZ.prototype.modify_twitch_profile_card = function(component) { el.classList.add('ffz-processed'); - jQuery('.aspect', el).tipsy(); + jQuery('.aspect', el).zipsy(); if ( ! data ) return false; diff --git a/src/ember/line.js b/src/ember/line.js index e23f11aa..9bc252d1 100644 --- a/src/ember/line.js +++ b/src/ember/line.js @@ -868,7 +868,8 @@ FFZ.prototype.setup_line = function() { // Tipsy Handler jQuery(document.body).on("mouseleave", ".tipsy", function() { - this.parentElement.removeChild(this); + if ( ! this.classList.contains('zipsy') ) + this.parentElement.removeChild(this); }); // Aliases diff --git a/src/ember/moderation-card.js b/src/ember/moderation-card.js index 3596464a..ecd9257f 100644 --- a/src/ember/moderation-card.js +++ b/src/ember/moderation-card.js @@ -1015,7 +1015,7 @@ FFZ.prototype.modify_moderation_card = function(component) { name.innerHTML = results[0]; name.title = results[1] || ''; if ( results[1] ) - jQuery(name).tipsy({html: true, gravity: utils.tooltip_placement(constants.TOOLTIP_DISTANCE, 'n')}); + jQuery(name).zipsy({html: true, gravity: utils.newtip_placement(constants.TOOLTIP_DISTANCE, 'n')}); } }); }); @@ -1105,9 +1105,9 @@ FFZ.prototype.modify_moderation_card = function(component) { add_btn_make = function(label, cmd) { var btn = utils.createElement('button', 'button ffz-no-bg', utils.sanitize(label)); - jQuery(btn).tipsy({ + jQuery(btn).zipsy({ html: true, - gravity: utils.tooltip_placement(constants.TOOLTIP_DISTANCE, 'n'), + gravity: utils.newtip_placement(constants.TOOLTIP_DISTANCE, 'n'), title: function() { var user = t.get('cardInfo.user'), chat_controller = utils.ember_lookup('controller:chat'), @@ -1169,7 +1169,7 @@ FFZ.prototype.modify_moderation_card = function(component) { else if ( f.settings.mod_card_hotkeys && timeout === 1 ) btn.title = "(P)urge - " + btn.title; - jQuery(btn).tipsy({gravity: utils.tooltip_placement(constants.TOOLTIP_DISTANCE, 'n')}); + jQuery(btn).zipsy({gravity: utils.newtip_placement(constants.TOOLTIP_DISTANCE, 'n')}); btn.addEventListener('click', btn_click.bind(this, timeout)); return btn; @@ -1220,7 +1220,7 @@ FFZ.prototype.modify_moderation_card = function(component) { unban_btn.innerHTML = '