move admin upload routes to api namespace

move usrrs/csv to api namespace
This commit is contained in:
barisusakli
2015-03-07 20:19:00 -05:00
parent f87f797bed
commit dc94fe2b6c
6 changed files with 15 additions and 19 deletions

View File

@@ -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() + ')')