Skip to content

Commit 99e3800

Browse files
committed
Fixed multiple preview hashes
1 parent ec2ece2 commit 99e3800

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

imcger/imgupload/styles/all/template/event/overall_footer_body_after.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,12 @@
472472
imcger.imgUpload.confirmSavePost = function(answerYes) {
473473

474474
if (answerYes) {
475+
let hashPos = phpbb.plupload.form.action.indexOf('#');
476+
477+
if (hashPos > 0) {
478+
phpbb.plupload.form.action = phpbb.plupload.form.action.substr(0, hashPos);
479+
}
480+
475481
$('.submit-buttons').off('click', '.button1');
476482
$('.submit-buttons [name="' + imcger.imgUpload.submitType + '"').trigger('click');
477483
}
@@ -503,7 +509,7 @@
503509
{% if (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 %}
504510
$link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\'; $(\'[data-attach-id=' + attach_id + ']\').find(\'.button2.file-inline-bbcode\').hide();" title="' + real_filename + '" alt="' + real_filename + '">');
505511
{% else %}
506-
$link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\';" title="' + real_filename + '; " alt="' + real_filename + '">');
512+
$link.html('<img id="img-' + attach_id + '" src="' + imgUrl + getThumbnail + '" onerror="this.src=\'' + imgUrl + '\';" title="' + real_filename + '" alt="' + real_filename + '">');
507513
{% endif %}
508514

509515
if ({{ (IUL_IMG_SET_INLINE && S_BBCODE_ALLOWED && S_BBCODE_IMG) ? 1 : 0 }}) {

0 commit comments

Comments
 (0)