Wiki delete page confirmation and max image width

This commit is contained in:
Andrew Manning 2016-07-20 05:44:29 -04:00
parent eac35c05e9
commit da49befb18
2 changed files with 7 additions and 0 deletions

View File

@ -2037,3 +2037,7 @@ dl.bb-dl > dd > li {
border-style: solid;
border-width: 5px;
}
#wiki-preview img {
max-width: 100%;
}

View File

@ -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) {