add autosubmit on admin menu

master
Jean-Christian Paul Denis 2021-10-21 22:22:02 +02:00
parent 5309769eaa
commit 9ce7cdd237
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,8 @@
- [ ] add priority on lists of filters for replacement order
- [ ] add auto-find post title in content
- [ ] split filters into modules
- [x] add autosubmit onadmin menu
- [ ] move sort options from blog pref to user pref
2021.09.05
- fix duplicate records id

View File

@ -165,6 +165,7 @@ echo '
//dcPage::jsLoad('js/_posts_list.js') .
dcPage::jsToolbar() .
dcPage::jsPageTabs() .
dcPage::jsLoad(dcPage::getPF('enhancePostContent/js/index.js')) .
# --BEHAVIOR-- enhancePostContentAdminHeader
$core->callBehavior('enhancePostContentAdminHeader', $core) . '

8
js/index.js 100644
View File

@ -0,0 +1,8 @@
/*global $, dotclear */
'use strict';
$(function () {
$('#part').on('change', function () {
this.form.submit();
});
});