[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Wiki pages: Reverting a wiki page the confirmation modal OK button was...

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69837e5f2535f_3b1843cc2023a@gitlab-sidekiq-low-urgency-cpu-bound-v2-55cfcc57bd-688nd.mail>

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


Commits:
1a1bf648 by Espoir Baraka at 2026-02-04T17:02:05+00:00
[FIX] Wiki pages: Reverting a wiki page the confirmation modal OK button was disappearing and add success feedback
---
* [FIX] Fix revert confirmation modal OK button disappearing and add success feedback

See merge request tikiwiki/tiki!9470

- - - - -


2 changed files:

- lib/jquery_tiki/tiki-jquery.js
- tiki-rollback.php


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -3296,7 +3296,7 @@ $(document).on('tiki.modal.redraw', '.modal.fade', function () {
 
     // On Modal show, find all buttons part of a .submit block and create
     // proxies of them in the modal footer
-    $('.modal-footer', modal).find('*').not('[data-bs-dismiss], .cleanable-false').remove();
+    $('.modal-footer .auto-btn', modal).remove();
     $('div.submit .btn', modal).each(function () {
         var $submit = $(this);
         if ($submit.hasClass('dropdown-toggle') && $submit.parent().hasClass('dropdown')) {


=====================================
tiki-rollback.php
=====================================
@@ -52,6 +52,7 @@ if (isset($_REQUEST["rollback"], $_REQUEST["comment"]) && $access->checkCsrf())
     $histlib->use_version($page, $version, $comment);
     $tikilib->invalidate_cache($page);
 
+    Feedback::success(tr('Page %0 has been reverted to version %1', $page, $version));
     header("location: tiki-index.php?page=" . urlencode($page));
     die;
 }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1a1bf64898e2ed50a3d32feb15ea31b11fb3ab94

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