Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../res/js/tooltip
File: tooltip.js
var WPMLCore = WPMLCore || {};
[0] Fix | Delete
[1] Fix | Delete
WPMLCore.Tooltip = function (element) {
[2] Fix | Delete
this.trigger = element;
[3] Fix | Delete
this.content = this.trigger.html(this.trigger.html()).text();
[4] Fix | Delete
this.edge = 'bottom';
[5] Fix | Delete
this.align = 'left';
[6] Fix | Delete
this.margin_left = '-54px';
[7] Fix | Delete
[8] Fix | Delete
if (!this.content) {
[9] Fix | Delete
this.content = this.decodeEntities(this.trigger.data('content'));
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
if (this.trigger.data('edge')) {
[13] Fix | Delete
this.edge = this.trigger.data('edge');
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
if (this.trigger.data('align')) {
[17] Fix | Delete
this.align = this.trigger.data('align');
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
if (this.trigger.data('margin_left')) {
[21] Fix | Delete
this.margin_left = this.trigger.data('margin_left');
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
this.trigger.empty();
[25] Fix | Delete
this.trigger.click(jQuery.proxy(this.onTriggerClick, this));
[26] Fix | Delete
};
[27] Fix | Delete
[28] Fix | Delete
WPMLCore.Tooltip.prototype = {
[29] Fix | Delete
open: function () {
[30] Fix | Delete
if (this.trigger.length && this.content) {
[31] Fix | Delete
this.trigger.addClass('js-wpml-active-tooltip');
[32] Fix | Delete
this.trigger.pointer({
[33] Fix | Delete
pointerClass: 'js-wpml-tooltip',
[34] Fix | Delete
content: this.content,
[35] Fix | Delete
position: {
[36] Fix | Delete
edge: this.edge,
[37] Fix | Delete
align: this.align
[38] Fix | Delete
},
[39] Fix | Delete
show: jQuery.proxy(this.onShow, this),
[40] Fix | Delete
close: this.onClose,
[41] Fix | Delete
buttons: this.buttons
[42] Fix | Delete
[43] Fix | Delete
}).pointer('open');
[44] Fix | Delete
}
[45] Fix | Delete
},
[46] Fix | Delete
onShow: function (event, t) {
[47] Fix | Delete
t.pointer.css('marginLeft', this.margin_left);
[48] Fix | Delete
},
[49] Fix | Delete
onClose: function (event, t) {
[50] Fix | Delete
t.pointer.css('marginLeft', '0');
[51] Fix | Delete
},
[52] Fix | Delete
onTriggerClick: function (e) {
[53] Fix | Delete
e.preventDefault();
[54] Fix | Delete
this.open();
[55] Fix | Delete
},
[56] Fix | Delete
buttons: function (event, t) {
[57] Fix | Delete
var button = jQuery('<a class="close" href="#">&nbsp;</a>');
[58] Fix | Delete
[59] Fix | Delete
return button.bind('click.pointer', function (e) {
[60] Fix | Delete
e.preventDefault();
[61] Fix | Delete
t.element.pointer('close');
[62] Fix | Delete
});
[63] Fix | Delete
},
[64] Fix | Delete
decodeEntities: function (encodedString) {
[65] Fix | Delete
var textArea = document.createElement('textarea');
[66] Fix | Delete
textArea.innerHTML = encodedString;
[67] Fix | Delete
return textArea.value;
[68] Fix | Delete
}
[69] Fix | Delete
};
[70] Fix | Delete
[71] Fix | Delete
WPMLCore.initializeTooltips = function() {
[72] Fix | Delete
"use strict";
[73] Fix | Delete
[74] Fix | Delete
var tooltips = jQuery('.js-wpml-tooltip-open'), tooltip = {};
[75] Fix | Delete
[76] Fix | Delete
tooltips.each(function (index, element) {
[77] Fix | Delete
tooltip = new WPMLCore.Tooltip(jQuery(element));
[78] Fix | Delete
});
[79] Fix | Delete
[80] Fix | Delete
};
[81] Fix | Delete
[82] Fix | Delete
(function () {
[83] Fix | Delete
'use strict';
[84] Fix | Delete
[85] Fix | Delete
jQuery(document).ready(function () {
[86] Fix | Delete
WPMLCore.initializeTooltips();
[87] Fix | Delete
});
[88] Fix | Delete
}());
[89] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function