Some small cleanups/corrections

This commit is contained in:
the-djmaze 2022-03-03 19:22:17 +01:00
parent 28b32edfab
commit f0b0d21386
5 changed files with 12 additions and 15 deletions

View file

@ -54,9 +54,8 @@ const
if (!vmDom.showModal) {
vmDom.classList.add('polyfill');
vmDom.showModal = () => {
if (!vmDom.backdrop) {
vmDom.backdrop ||
vmDom.before(vmDom.backdrop = Element.fromHTML('<div class="dialog-backdrop"></div>'));
}
vmDom.setAttribute('open','');
vmDom.open = true;
vmDom.returnValue = null;

View file

@ -66,7 +66,7 @@ export class MailMessageView extends AbstractViewRight {
const
/**
* @param {Function} fExecute
* @param {(Function|boolean|null)=} fCanExecute = true
* @param {Function} fCanExecute = true
* @returns {Function}
*/
createCommand = (fExecute, fCanExecute) => {

View file

@ -125,5 +125,6 @@ trait Themes
\str_replace('@{base}', $sBase, \implode("\n", $mResult)));
return $bLess ? (new \LessPHP\lessc())->compile($mResult) : $mResult;
// : \str_replace(';}', '}', \preg_replace('/\\s*([:;{},])\\s*/', '\1', \preg_replace('/\\s+/', ' ', \preg_replace('#/\\*.*?\\*/#s', '', $mResult))));
}
}

View file

@ -92,10 +92,7 @@ class Api
$sSslCapath = static::Config()->Get('ssl', 'capath', '');
Utils::$CookieDefaultPath = static::Config()->Get('labs', 'cookie_default_path', '');
if (static::Config()->Get('labs', 'cookie_default_secure', false))
{
Utils::$CookieDefaultSecure = true;
}
Utils::$CookieDefaultSecure = !!static::Config()->Get('labs', 'cookie_default_secure', false);
if (!empty($sSslCafile) || !empty($sSslCapath))
{

View file

@ -9,7 +9,7 @@
--link-color: #369;
/* LOADING */
--loading-color: #000; /* #ddd */
--loading-color: #000;
--loading-text-shadow: none; /* 0px 1px 0px rgba(0, 0, 0, 0.5); */
/* LOGIN */