Wiki delete page confirmation and max image width
This commit is contained in:
parent
eac35c05e9
commit
da49befb18
@ -2037,3 +2037,7 @@ dl.bb-dl > dd > li {
|
||||
border-style: solid;
|
||||
border-width: 5px;
|
||||
}
|
||||
|
||||
#wiki-preview img {
|
||||
max-width: 100%;
|
||||
}
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user