[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] allow ignoring feedback for ajax calls - e.g. useful when calendar...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69410ba09da73_2a17f9bc49491@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c558b5594-cxhbt.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
0bcdb1ac by Victor Emanouilov at 2025-12-16T09:34:45+02:00
[FIX] allow ignoring feedback for ajax calls - e.g. useful when calendar events get attributes for something that result in permission denied

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -2445,7 +2445,7 @@ $.fn.tiki = function(func) {
 
     $document.on("ajaxError", function (event, jqxhr, settings, thrownError) {
 
-        if (settings.preventGlobalErrorHandle) {
+        if (settings && settings.preventGlobalErrorHandle) {
             return;
         }
 
@@ -3958,7 +3958,10 @@ function objectLockToggle(icon) {
  * If tikifeedback div is outside of the viewport, place it at the top of the viewport and have it move to the
  * normal position (first element in div#col1) after 5 seconds
  */
-$(document).on("ajaxComplete", function (e, jqxhr) {
+$(document).on("ajaxComplete", function (e, jqxhr, settings) {
+    if (settings && settings.preventGlobalFeedback) {
+        return;
+    }
     var feedback = jqxhr.getResponseHeader('X-Tiki-Feedback'),
         tfb = $('#tikifeedback');
     if (feedback) {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0bcdb1ac3c582bb24ec0d9f9d7429468d6eeef5a

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0bcdb1ac3c582bb24ec0d9f9d7429468d6eeef5a
You're receiving this email because of your account on gitlab.com.

_______________________________________________
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.