server_notify
This commit is contained in:
parent
2166ef2443
commit
7d6419cc5c
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue