mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
move admin upload routes to api namespace
move usrrs/csv to api namespace
This commit is contained in:
@@ -207,7 +207,7 @@ define('admin/manage/categories', [
|
||||
case 'name':
|
||||
data[name] = $(this).val() + ' (copy)';
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
data[name] = $(this).val();
|
||||
}
|
||||
});
|
||||
@@ -226,7 +226,7 @@ define('admin/manage/categories', [
|
||||
var inputEl = $(this),
|
||||
cid = inputEl.parents('li[data-cid]').attr('data-cid');
|
||||
|
||||
uploader.open(RELATIVE_PATH + '/admin/category/uploadpicture', { cid: cid }, 0, function(imageUrlOnServer) {
|
||||
uploader.open(RELATIVE_PATH + '/api/admin/category/uploadpicture', { cid: cid }, 0, function(imageUrlOnServer) {
|
||||
inputEl.val(imageUrlOnServer);
|
||||
var previewBox = inputEl.parents('li[data-cid]').find('.preview-box');
|
||||
previewBox.css('background', 'url(' + imageUrlOnServer + '?' + new Date().getTime() + ')')
|
||||
|
||||
Reference in New Issue
Block a user