fix checkbox helpers, fix #4

This commit is contained in:
Jean-Christian Paul Denis 2023-07-01 01:07:04 +02:00
parent f20be2acd3
commit aefc9b5b69
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
5 changed files with 20 additions and 10 deletions

9
js/feed.js Normal file
View File

@ -0,0 +1,9 @@
/*global $, dotclear */
'use strict';
$(() => {
$('.checkboxes-helpers').each(function () {
dotclear.checkboxesHelpers(this, undefined, '#form-entries td input[type=checkbox]', '#form-entries #feed-action');
});
dotclear.condSubmit('#form-entries td input[type=checkbox]', '#form-entries #feed-action');
});

9
js/feeds.js Normal file
View File

@ -0,0 +1,9 @@
/*global $, dotclear */
'use strict';
$(() => {
$('.checkboxes-helpers').each(function () {
dotclear.checkboxesHelpers(this, undefined, '#form-feeds td input[type=checkbox]', '#form-feeds #feeds-action');
});
dotclear.condSubmit('#form-feeds td input[type=checkbox]', '#form-feeds #feeds-action');
});

View File

@ -1,8 +0,0 @@
/*global $, dotclear */
'use strict';
$(() => {
$('.checkboxes-helpers').each(function(){dotclear.checkboxesHelpers(this);});
dotclear.condSubmit('#form-feeds td input[type=checkbox]', '#form-feeds #feeds-action');
dotclear.condSubmit('#form-entries td input[type=checkbox]', '#form-entries #feed-action');
});

View File

@ -143,7 +143,7 @@ class Manage extends dcNsProcess
( (
isset($feeds_list) && !dcCore::app()->error->flag() ? isset($feeds_list) && !dcCore::app()->error->flag() ?
$feeds_filter->js(dcCore::app()->adminurl->get('admin.plugin.' . My::id(), ['part' => 'feeds'], '&')) . $feeds_filter->js(dcCore::app()->adminurl->get('admin.plugin.' . My::id(), ['part' => 'feeds'], '&')) .
dcPage::jsModuleLoad(My::id() . '/js/list.js') dcPage::jsModuleLoad(My::id() . '/js/feeds.js')
: '' : ''
) . ) .
dcPage::jsPageTabs() dcPage::jsPageTabs()

View File

@ -197,7 +197,7 @@ class ManageFeed extends dcNsProcess
( (
$v->id && isset($post_filter) && !dcCore::app()->error->flag() ? $v->id && isset($post_filter) && !dcCore::app()->error->flag() ?
$post_filter->js(dcCore::app()->adminurl->get('admin.plugin.' . My::id(), ['part' => 'feed', 'feed_id' => $v->id], '&') . '#entries') . $post_filter->js(dcCore::app()->adminurl->get('admin.plugin.' . My::id(), ['part' => 'feed', 'feed_id' => $v->id], '&') . '#entries') .
dcPage::jsModuleLoad(My::id() . '/js/list.js') dcPage::jsModuleLoad(My::id() . '/js/feed.js')
: '' : ''
) . ) .
dcPage::jsPageTabs() . dcPage::jsPageTabs() .