Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Last active October 17, 2020 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unlocomqx/b4e81ad5a865d768a4c3d5701f4c94f4 to your computer and use it in GitHub Desktop.
Save unlocomqx/b4e81ad5a865d768a4c3d5701f4c94f4 to your computer and use it in GitHub Desktop.
function dp_zakryt_typ(value, id_option) {
var url = $('.dp_thumb_' + id_option + ' a:eq(0)').data('url');
console.log("id_option: " + id_option);
var container = $('#dp_r1_rozsirenie').closest('.dp_field_container');
var qtip_content = container.find('.dp_qtip');
qtip_content.find('img').prop('src', url);
var tooltip = container.find('.dp_tooltip');
tooltip.qtip('api').set('content.text', qtip_content.html());
var id_tooltip = tooltip.data('hasqtip');
console.log("id tooltip:" + id_tooltip);
$('#qtip-' + id_tooltip + ' img').prop('src', url);
console.log('done');
console.log('value: '+value);
typ = value;
getImageUrl();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment