[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Comments: Improved clarity of the error message when comments fail to load.

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69f89868e6072_38334e6b419358@gitlab-sidekiq-low-urgency-cpu-bound-v2-5547bb5d96-f99gn.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
2d5c0e25 by NasserNgandu at 2026-05-04T12:43:05+00:00
[ENH] Comments: Improved clarity of the error message when comments fail to load.
---
* [FIX] Code Correct

* [FIX] Code Correct

* [FIX] Code Correct.

* [ENH] Comments: Improved clarity of the error message when comments fail to load.

* [ENH] Comments: Improved clarity of the error message when comments fail to load.

See merge request tikiwiki/tiki!10100

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -18,10 +18,12 @@ jQuery.fn.load = function (url, _data, _complete) {
     var complete = function (responseText, textStatus, jqXHR) {
         element.tikiModal();
         if (textStatus === 'error') {
+            let errorStatusMsg = tr('Error %0: %1').replace('%0', jqXHR.status).replace('%1', jqXHR.statusText);
             element.html('<div class="alert alert-danger alert-dismissible" role="alert">'
-                + '<button type="button" class="close btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'
+                + '<button type="button" class="close btn-close" data-bs-dismiss="alert" aria-label="' + tr('Close') + '"></button>'
                 + '<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>'
-                + 'Error loading content.</div>');
+                + tr('Error loading content') + '<br>'
+                + '<strong>' + errorStatusMsg + '</strong></div>');
             return;
         }
         const container = $('<div></div>');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2d5c0e258414bead6cda3e6a66513353a7b8b437

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2d5c0e258414bead6cda3e6a66513353a7b8b437
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.