more flagged posts shenanigans

This commit is contained in:
barisusakli
2016-02-03 18:21:34 +02:00
parent 086e99de5c
commit e6cf8ec5cf
8 changed files with 105 additions and 74 deletions

View File

@@ -195,6 +195,9 @@ $(document).ready(function() {
ajaxify.loadScript = function(tpl_url, callback) {
var location = !app.inAdmin ? 'forum/' : '';
if (tpl_url.startsWith('admin')) {
location = '';
}
var data = {
tpl_url: tpl_url,
scripts: [location + tpl_url]