Can not delete photo #1043

Open
opened 2026-10-05 00:29:25 +02:00 by adam · 1 comment
Owner

admin.php?page=photo-5:369 Uncaught TypeError: url_delete.replaceAll is not a function
at w.Jconfirm.action (admin.php?page=photo-5:369)
at HTMLButtonElement. (1w41euh.js:41)
at HTMLButtonElement.dispatch (jquery.min.js?v2.11.0beta2:4)
at HTMLButtonElement.r.handle (jquery.min.js?v2.11.0beta2:4)
action @ admin.php?page=photo-5:369
(anonymous) @ 1w41euh.js:41
dispatch @ jquery.min.js?v2.11.0beta2:4
r.handle @ jquery.min.js?v2.11.0beta2:4

./admin/themes/default/template/picture_modify.tpl: window.location.href = url_delete.replaceAll('amp;', '');

admin.php?page=photo-5:369 Uncaught TypeError: url_delete.replaceAll is not a function at w.Jconfirm.action (admin.php?page=photo-5:369) at HTMLButtonElement.<anonymous> (1w41euh.js:41) at HTMLButtonElement.dispatch (jquery.min.js?v2.11.0beta2:4) at HTMLButtonElement.r.handle (jquery.min.js?v2.11.0beta2:4) action @ admin.php?page=photo-5:369 (anonymous) @ 1w41euh.js:41 dispatch @ jquery.min.js?v2.11.0beta2:4 r.handle @ jquery.min.js?v2.11.0beta2:4 ./admin/themes/default/template/picture_modify.tpl: window.location.href = url_delete.replaceAll('amp;', ''); <!-- github-sync-id:672132921 -->
Author
Owner

GNU nano 5.0 themes/default/js/jquery.min.js
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */

(function() {
String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) {
if (!RegExp.prototype.isPrototypeOf(reallyDo)) {
return this.replace(new RegExp(reallyDo, (ignoreCase ? "gi": "g")), replaceWith);
} else {
return this.replace(reallyDo, replaceWith);
}
}
})();

GNU nano 5.0 themes/default/js/jquery.min.js /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ (function() { String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) { if (!RegExp.prototype.isPrototypeOf(reallyDo)) { return this.replace(new RegExp(reallyDo, (ignoreCase ? "gi": "g")), replaceWith); } else { return this.replace(reallyDo, replaceWith); } } })(); <!-- github-comment-id:668093670 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1043