aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-01 06:35:49 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-01 06:35:49 -0400
commit205924ff294e5c0d9c57ed9a36dc899fcdd9c460 (patch)
tree0ffb2e5e6ee9cc12f72147f7f6c7ca5b6c9266d0 /view/tpl/wiki.tpl
parenteef8f3b417ef90977649b1a39c98f299be4b5bce (diff)
downloadvolse-hubzilla-205924ff294e5c0d9c57ed9a36dc899fcdd9c460.tar.gz
volse-hubzilla-205924ff294e5c0d9c57ed9a36dc899fcdd9c460.tar.bz2
volse-hubzilla-205924ff294e5c0d9c57ed9a36dc899fcdd9c460.zip
JavaScript popup for page delete confirmation
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r--view/tpl/wiki.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 7617808f4..d9a4f8be3 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -311,6 +311,9 @@ function wiki_delete_wiki(wikiHtmlName, resource_id) {
ev.preventDefault();
return false;
}
+ if(!confirm('Are you sure you want to delete the page: ' + window.wiki_page_name)) {
+ return;
+ }
$.post("wiki/{{$channel}}/delete/page", {name: window.wiki_page_name, resource_id: window.wiki_resource_id},
function (data) {
if (data.success) {