This commit is contained in:
Mirco Wittrien 2019-09-24 10:23:44 +02:00
parent 25ff509140
commit 9771793d1a
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -2794,10 +2794,10 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
setGifFavButton(ele);
};
addInitEventListener(ele, 'click', ele.BDFDBupdateElement);
var id = "FAV_s" + Math.round(Math.random() * 10000000000000000);
var id = 'FAV_s' + Math.round(Math.random() * 10000000000000000);
addInitEventListener(ele, 'mouseenter', () => {
BDFDB.removeEles(`#${id}_tooltip`);
BDFDB.createTooltip(BDFDB.LanguageStrings[`GIF_TOOLTIP_${BDFDB.containsClass(ele, BDFDB.disCN.giffavoriteselected) ? 'REMOVE_FROM' : 'ADD_TO'}_FAVORITES`], ele, {type:'top', id:id+_tooltip});
BDFDB.createTooltip(BDFDB.LanguageStrings[`GIF_TOOLTIP_${BDFDB.containsClass(ele, BDFDB.disCN.giffavoriteselected) ? 'REMOVE_FROM' : 'ADD_TO'}_FAVORITES`], ele, {type:'top', id:id+'_tooltip'});
});
});
container.querySelectorAll('.file-navigator').forEach(ele => {