mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-29 04:33:25 +00:00
[Web][Dovecot] Rework imapsync: sync sources, OAuth2 (XOAUTH2), worker pool, Python runner
This commit is contained in:
39 files changed
+3582
-1358
No files matched your search
@@ -73,7 +73,8 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
// form cache
|
||||
$('[data-cached-form="true"]').formcache({key: $(this).data('id')});
|
||||
// fields marked with data-formcache-skip (secrets) are never written to localStorage
|
||||
$('[data-cached-form="true"]').formcache({key: $(this).data('id'), controls: ['select', 'textarea', 'input:not([data-formcache-skip])']});
|
||||
|
||||
// tooltips
|
||||
$(function () {
|
||||
@@ -113,6 +114,8 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
localStorage.setItem(key, tab_id);
|
||||
// remember which card of the tab was opened
|
||||
localStorage.setItem(key + ':collapse', $(this).attr('data-bs-target').substring(1));
|
||||
});
|
||||
// open last tab
|
||||
$('[role="tablist"]').each(function (idx, elem) {
|
||||
@@ -128,7 +131,10 @@ $(document).ready(function() {
|
||||
dropdown.find('.dropdown-menu').removeClass('show');
|
||||
dropdown.find('.dropdown-toggle').attr('aria-expanded', 'false');
|
||||
var tab = $('[id^="' + lastTab + '"]');
|
||||
$(tab).find('.card-body.collapse:first').collapse('show');
|
||||
var lastCollapse = localStorage.getItem(key + ':collapse');
|
||||
var $card = lastCollapse ? $(tab).find('.card-body.collapse').filter(function() { return this.id === lastCollapse; }) : $();
|
||||
if (!$card.length) $card = $(tab).find('.card-body.collapse:first');
|
||||
$card.collapse('show');
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user