jQuery(function($) {
getHelpTips = (function() {
var dfd = $.Deferred();
return function() {
if (dfd.state() != 'resolved')
$.ajax({
url: "ajax.php/help/tips/install",
dataType: 'json',
success: function (json_config) {
dfd.resolve(json_config);
}
});
return dfd;
}
})();
$('.tip')
.each(function(i, e) {
e.rel = 'tip-' + i;
})
.on('mouseover click', function(e) {
e.preventDefault();
var elem = $(this),
pos = elem.offset(),
y_pos = pos.top - 8,
x_pos = pos.left + elem.width() + 16,
tip_arrow = $('')
.attr('src', './images/tip_arrow.png')
.addClass('tip_arrow'),
tip_box = $('