[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 | <69410bb999c35_2a17f96c981ab@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c558b5594-f98mv.mail> |
Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
8e6c722e by Victor Emanouilov at 2025-12-16T09:35:11+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
=====================================
@@ -3182,7 +3182,7 @@ $.fn.tiki = function(func, type, options, excludepage) {
$document.on("ajaxError", function (event, jqxhr, settings, thrownError) {
- if (settings.preventGlobalErrorHandle) {
+ if (settings && settings.preventGlobalErrorHandle) {
return;
}
@@ -4836,7 +4836,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/8e6c722e894cb3a43a03987bd4ae6f0622458710
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8e6c722e894cb3a43a03987bd4ae6f0622458710
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