v1.8.1 stage D button save & close unnecessary bugfix
This commit is contained in:
13
Plugin.php
13
Plugin.php
@@ -77,17 +77,6 @@ class Plugin extends Base
|
||||
$this->template->hook->attach('template:board:private:task:before-title', 'organonTweaks:board/title_edit');
|
||||
}
|
||||
|
||||
// Tweak: a "Save & Close" button on the task edit form that saves and returns to the board
|
||||
// (core only reopens the card view). The button posts to a small plugin controller that
|
||||
// reuses core's update and changes only the redirect; the JS repoints the form action, so
|
||||
// Kanboard's modal still owns the submit, CSRF, and error re-render.
|
||||
if ((int) $this->configModel->get('organon_tweaks_save_close_button', 1) === 1) {
|
||||
$this->template->hook->attach('template:task:form:bottom-before-buttons', 'organonTweaks:task_form/save_close_button');
|
||||
$this->hook->on('template:layout:js', array(
|
||||
'template' => 'plugins/OrganonTweaks/Asset/js/save-close.js',
|
||||
));
|
||||
}
|
||||
|
||||
// Auto-managed shared custom filters (v1.5 "Show all tasks", v1.6 month filters, v1.7
|
||||
// recurring filters). Ensured lazily whenever a project header renders (covers old + new
|
||||
// boards); each group is gated by its own config toggle inside
|
||||
@@ -139,7 +128,7 @@ class Plugin extends Base
|
||||
|
||||
public function getPluginVersion()
|
||||
{
|
||||
return '1.8.0';
|
||||
return '1.8.1';
|
||||
}
|
||||
|
||||
public function getPluginHomepage()
|
||||
|
||||
Reference in New Issue
Block a user