replaced all instances of missing config.relative_path to RELATIVE_PATH

v1.18.x
Julian Lam 11 years ago
parent ffa31ca0e7
commit 0148cf06d0

@ -84,7 +84,7 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
$('#uploadPictureBtn').on('click', function() {
$('#change-picture-modal').modal('hide');
uploader.open(config.relative_path + '/user/uploadpicture', function(imageUrlOnServer) {
uploader.open(RELATIVE_PATH + '/user/uploadpicture', function(imageUrlOnServer) {
imageUrlOnServer = imageUrlOnServer + '?' + new Date().getTime();
$('#user-current-picture').attr('src', imageUrlOnServer);

@ -184,7 +184,7 @@ define(['uploader'], function(uploader) {
$('.upload-button').on('click', function() {
var inputEl = this;
uploader.open(config.relative_path + '/admin/category/uploadpicture', function(imageUrlOnServer) {
uploader.open(RELATIVE_PATH + '/admin/category/uploadpicture', function(imageUrlOnServer) {
inputEl.value = imageUrlOnServer;
$(inputEl).parents('li[data-cid]').find('.preview-box').css('background', 'url(' + imageUrlOnServer + '?' + new Date().getTime() + ')');
modified(inputEl);

@ -76,7 +76,7 @@ define(['uploader'], function(uploader) {
$('#uploadLogoBtn').on('click', function() {
uploader.open(config.relative_path + '/admin/uploadlogo', function(image) {
uploader.open(RELATIVE_PATH + '/admin/uploadlogo', function(image) {
$('#logoUrl').val(image);
});

Loading…
Cancel
Save