|
|
@ -11,11 +11,11 @@ var SingleImage = { |
|
|
|
single_image: function() { |
|
|
|
single_image: function() { |
|
|
|
$('.single_image').each(function(index, element) { |
|
|
|
$('.single_image').each(function(index, element) { |
|
|
|
|
|
|
|
|
|
|
|
var image_id = $(element).attr('data-id'); |
|
|
|
let image_id = $(element).attr('data-id'); |
|
|
|
var doc_id = $(element).attr('data-doc'); |
|
|
|
let doc_id = $(element).attr('data-doc'); |
|
|
|
var link = $(element).find('a.lnk'); |
|
|
|
let link = $(element).find('a.lnk'); |
|
|
|
var look = $(element).find('a.look'); |
|
|
|
let look = $(element).find('a.look'); |
|
|
|
var input = $(element).find('input'); |
|
|
|
let input = $(element).find('input'); |
|
|
|
|
|
|
|
|
|
|
|
link.on('click', function(event) { |
|
|
|
link.on('click', function(event) { |
|
|
|
event.preventDefault(); |
|
|
|
event.preventDefault(); |
|
|
@ -34,13 +34,13 @@ var SingleImage = { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
$('#preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
'src': '../index.php?mode=f&width=128&height=128&thumb=/' + dir + '/' + file_full |
|
|
|
//'src': '../index.php?mode=t&width=128&height=128&thumb=/' + dir + '/' + file_full
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (input.val() == '') { |
|
|
|
if (input.val() == '') { |
|
|
|
$('#preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
$('#preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
'src': '/uploads/images/' + thumbdir + '/noimage-f128x128.png' |
|
|
|
'src': '/uploads/images/' + thumbdir + '/noimage-t128x128.png' |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('.preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
$('.preview__' + image_id + '_' + doc_id).attr({ |
|
|
|
'href': '/uploads/images/noimage.png' |
|
|
|
'href': '/uploads/images/noimage.png' |
|
|
|