OrganonTweaks: enhance recurrence dialog -- Yes/No radios + [+7] factor button (JS); v1.3.0

This commit is contained in:
2026-07-07 09:40:51 -03:00
parent ff6abf1d49
commit 95561e5565
5 changed files with 32 additions and 2 deletions

View File

@@ -42,6 +42,14 @@ class Plugin extends Base
'template' => 'plugins/OrganonTweaks/Asset/js/click-guard.js',
));
}
// Tweak: enhance the native "Edit recurrence" dialog (Yes/No radios + a [+7] button
// on the factor). No template hook there, so it is done in JS.
if ((int) $this->configModel->get('organon_tweaks_enhance_recurrence', 1) === 1) {
$this->hook->on('template:layout:js', array(
'template' => 'plugins/OrganonTweaks/Asset/js/enhance-recurrence.js',
));
}
}
public function getHelpers()
@@ -68,7 +76,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.2.1';
return '1.3.0';
}
public function getPluginHomepage()