server_notify

This commit is contained in:
root 2022-03-25 09:49:24 +00:00
parent 2166ef2443
commit 7d6419cc5c
3 changed files with 33 additions and 17 deletions

View File

@ -26,7 +26,11 @@ class Posts extends Controller
BackendMenu::setContext('RainLab.Blog', 'blog', 'posts');
}
public function onNotify($id) {
return $id;
}
public function index()
{
$this->vars['postsTotal'] = Post::count();

View File

@ -27,6 +27,17 @@
<?= e(trans('backend::lang.form.save_and_close')) ?>
</a>
<?php endif ?>
<?php if (!$isCreate): ?>
<!-- Save and Close -->
<a
href="javascript:;"
class="btn btn-primary oc-icon-wechat save"
data-request="onNotify"
data-load-indicator="<?= e(trans('backend::lang.form.saving')) ?>">
Notify
</a>
<?php endif ?>
<!-- Preview -->
<a

View File

@ -136,22 +136,23 @@ items:
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Выборы-2022
nesting: 0
type: blog-category
code: ''
reference: '797'
cmsPage: category
replace: 0
viewBag:
locale:
en:
title: Elections-2022
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Выборы-2022
nesting: 0
type: blog-category
url: null
code: ''
reference: '797'
cmsPage: category
replace: 0
viewBag:
locale:
en:
title: Elections-2022
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Фото
nesting: 0