[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 | <69410ba924c31_2a17f944521@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c558b5594-fjg74.mail> |
Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
df037135 by Victor Emanouilov at 2025-12-16T09:34:56+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
=====================================
@@ -2436,7 +2436,7 @@ $.fn.tiki = function(func) {
$document.on("ajaxError", function (event, jqxhr, settings, thrownError) {
- if (settings.preventGlobalErrorHandle) {
+ if (settings && settings.preventGlobalErrorHandle) {
return;
}
@@ -3943,7 +3943,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/df037135351131ec9fae4dfd864c51411cd0083d
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/df037135351131ec9fae4dfd864c51411cd0083d
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