[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Fixed tracker_input modal infinite loading and close issues

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <696fd2a499f2b_2b18224851177@gitlab-sidekiq-low-urgency-cpu-bound-v2-6787bc4f54-mm6dh.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
74163474 by Espoir Baraka at 2026-01-20T18:59:36+00:00
[FIX] Fixed tracker_input modal infinite loading and close issues
---
* [FIX] Fixed tracker_input modal infinite loading and close issues

See merge request tikiwiki/tiki!9365

- - - - -


1 changed file:

- templates/modules/mod-tracker_input.tpl


Changes:

=====================================
templates/modules/mod-tracker_input.tpl
=====================================
@@ -38,6 +38,13 @@
             return false;
         }
 
+        var actionUrl = $(form).attr('action');
+        var serialized = $(form).serialize();
+        var fullUrl = actionUrl;
+        if (serialized) {
+            fullUrl += (actionUrl.indexOf('?') === -1 ? '?' : '&') + serialized;
+        }
+        
         $.clickModal({
             title: $(':submit', form).val(),
             success: function (data) {
@@ -46,14 +53,16 @@
                     $(form).closest('.tab, #appframe, body').find('.map-container')[0].modeManager.switchTo("{{$tracker_input.insertMode|escape}}");
                 {{/if}}
 
-                $('.modal').on('hidden.bs.modal', function () {
+                $('.modal').one('hidden.bs.modal', function () {
                     $(form).trigger('cancel');
                     {{if !empty($tracker_input.insertMode)}}
                         $(form).closest('.tab, #appframe, body').find('.map-container')[0].modeManager.switchTo("{{$tracker_input.insertMode|escape}}");
                     {{/if}}
                 });
+                
+                $.closeModal();
             }
-        }, $(form).attr('action') + '&' + $(form).serialize()).call(this, e);
+        }, fullUrl).call(this, e);
     }).each(function () {
         var form = this
             , location = $(this).data('location')



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/74163474fd5e47315718054575e41c139152621e

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