[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [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 <69410bb2d8a4d_2a17f93058684@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c558b5594-rqqlw.mail>

Victor Emanouilov pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
d9e2c5d6 by Victor Emanouilov at 2025-12-16T09:35:04+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
=====================================
@@ -3140,7 +3140,7 @@ $.fn.tiki = function(func, type, options, excludepage) {
 
     $document.on("ajaxError", function (event, jqxhr, settings, thrownError) {
 
-        if (settings.preventGlobalErrorHandle) {
+        if (settings && settings.preventGlobalErrorHandle) {
             return;
         }
 
@@ -4734,7 +4734,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/d9e2c5d6c49c1845c99c152a47821bd902cb1843

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d9e2c5d6c49c1845c99c152a47821bd902cb1843
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.