[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources
"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68b191505e9a_2cdc6a4734f8@gitlab-sidekiq-low-urgency-cpu-bound-v2-6f77f6d69d-p7lxf.mail> |
Sammy Ndabo pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8ec37ffa by Sammy Ndabo at 2025-08-29T11:31:00+00:00
[FIX, ENH] api: Fix the "Content Authentication" form on Admin Content Sources
---
* [FIX] api: Fix the "Content Authentication" form on Admin Content Sources (tiki-admin_dsn.php) so it shows what's being saved properly - note you need to not set a user here for tiki-admin_sync.php to work.
* [FIX] wikiplugin_tracker: Allow not having a preview button
See merge request tikiwiki/tiki!8451
- - - - -
1 changed file:
- templates/tiki-admin_dsn.tpl
Changes:
=====================================
templates/tiki-admin_dsn.tpl
=====================================
@@ -210,8 +210,13 @@ $('#source-form').each(function () {
reload = function () {
$('option.added', form).remove();
$.getJSON($.service('auth_source', 'list'), function (entries) {
+ const urlParams = new URLSearchParams(window.location.search);
$.each(entries, function (k, v) {
- $(form.existing).append($('<option class="added"/>').text(v));
+ $(form.existing).append(
+ $('<option class="added"/>')
+ .text(v)
+ .prop("selected", v === urlParams.get('identifier'))
+ );
});
});
},
@@ -236,7 +241,7 @@ $('#source-form').each(function () {
$(form.identifier).val(id);
$(form.method).val(data.method).trigger("change");
$(form.url).val(data.url);
- $(form.user).val(data.user);
+ $(form.user).val(data.user).trigger("change.select2");
switch (data.method) {
case 'basic':
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8ec37ffab64e95c232fabd85998fe2b31234d2dc
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8ec37ffab64e95c232fabd85998fe2b31234d2dc
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