diff --git a/admin/controllers/edit-post.php b/admin/controllers/edit-post.php index 3c9b453b..f5cdffd6 100644 --- a/admin/controllers/edit-post.php +++ b/admin/controllers/edit-post.php @@ -20,7 +20,7 @@ function editPost($args) if( $dbPosts->edit($args) ) { Alert::set('The post has been saved successfull'); - Redirect::page('admin', 'manage-posts'); + Redirect::page('admin', 'edit-post/'.$args['key']); } else { diff --git a/admin/views/edit-page.php b/admin/views/edit-page.php index a760c7a9..1b6d1b46 100644 --- a/admin/views/edit-page.php +++ b/admin/views/edit-page.php @@ -1,6 +1,6 @@

p('Edit page') ?>

-
+ @@ -20,7 +20,7 @@ } else { - echo '

'.$Language->p('Enable more features at').''.$Language->p('settings-advanced-writting-settings').'

'; + echo '

'.$Language->g('Enable more features at').' '.$Language->g('settings-advanced-writting-settings').'

'; echo ' - + - children())===0) { ?> +children())===0) { ?> - - + +
@@ -121,6 +121,12 @@ $(document).ready(function() checkSlugPage(text, parent, key, $("#jsslug")); }); + $("#jsdelete").click(function() { + if(!confirm("p('confirm-delete-this-action-cannot-be-undone') ?>")) { + event.preventDefault(); + } + }); + }); \ No newline at end of file diff --git a/admin/views/edit-post.php b/admin/views/edit-post.php index 3af9d7f4..83b80b26 100644 --- a/admin/views/edit-post.php +++ b/admin/views/edit-post.php @@ -20,7 +20,7 @@ } else { - echo '

'.$Language->p('Enable more features at').''.$Language->p('settings-advanced-writting-settings').'

'; + echo '

'.$Language->g('Enable more features at').' '.$Language->g('settings-advanced-writting-settings').'

'; echo ' - + - + @@ -73,6 +73,12 @@ $(document).ready(function() checkSlugPost(slug, key, $("#jsslug")); }); + $("#jsdelete").click(function() { + if(!confirm("p('confirm-delete-this-action-cannot-be-undone') ?>")) { + event.preventDefault(); + } + }); + }); \ No newline at end of file diff --git a/admin/views/new-page.php b/admin/views/new-page.php index 32f4eb0c..ab05b513 100644 --- a/admin/views/new-page.php +++ b/admin/views/new-page.php @@ -18,7 +18,7 @@ } else { - echo '

'.$Language->g('Enable more features at').''.$Language->g('settings-advanced-writting-settings').'

'; + echo '

'.$Language->g('Enable more features at').' '.$Language->g('settings-advanced-writting-settings').'

'; echo '