Skip to content
Snippets Groups Projects
Commit 2dbd04c4 authored by Andrew Berezovsky's avatar Andrew Berezovsky
Browse files

Fixed [#2497961] - added title and alt attributes on the transparent gif.

parent 364e8887
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,9 @@
process: function() {
if (this.naturalWidth > Drupal.settings.copyprevention.images_min_dimension || this.naturalHeight > Drupal.settings.copyprevention.images_min_dimension) {
$(this).bind('mouseover touchstart', function(event) {
//var pos = $(this).offset();
var pos = $(this).position();
var html = '<div class="copyprevention-transparent-gif" style="position: absolute; left: ' + pos.left + 'px; top: ' + pos.top + 'px">' +
'<img src="' + Drupal.settings.copyprevention.transparentgif + '" style="width: ' + this.clientWidth + 'px !important; height: ' + this.clientHeight + 'px !important;"></div>';
//var $overlay = $(html).appendTo('body')
'<img title="' + this.title + '" alt="' + this.alt + '" src="' + Drupal.settings.copyprevention.transparentgif + '" style="width: ' + this.clientWidth + 'px !important; height: ' + this.clientHeight + 'px !important;"></div>';
var $overlay = $(html).insertAfter(this)
.bind('mouseout', function(e) {
$overlay.remove();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment