readded some missing classes, fixed some styling on category.tpl, fixed image uploading code

This commit is contained in:
Julian Lam
2015-03-25 11:58:21 -04:00
parent 765f15096b
commit 815ea88fa5
4 changed files with 51 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ define('admin/manage/category', [
var inputEl = $(this),
cid = inputEl.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.parent().siblings('.category-preview');
previewBox.css('background', 'url(' + imageUrlOnServer + '?' + new Date().getTime() + ')')