mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
replaced all instances of missing config.relative_path to RELATIVE_PATH
This commit is contained in:
@@ -84,7 +84,7 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
|
|||||||
$('#uploadPictureBtn').on('click', function() {
|
$('#uploadPictureBtn').on('click', function() {
|
||||||
|
|
||||||
$('#change-picture-modal').modal('hide');
|
$('#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();
|
imageUrlOnServer = imageUrlOnServer + '?' + new Date().getTime();
|
||||||
|
|
||||||
$('#user-current-picture').attr('src', imageUrlOnServer);
|
$('#user-current-picture').attr('src', imageUrlOnServer);
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ define(['uploader'], function(uploader) {
|
|||||||
$('.upload-button').on('click', function() {
|
$('.upload-button').on('click', function() {
|
||||||
var inputEl = this;
|
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.value = imageUrlOnServer;
|
||||||
$(inputEl).parents('li[data-cid]').find('.preview-box').css('background', 'url(' + imageUrlOnServer + '?' + new Date().getTime() + ')');
|
$(inputEl).parents('li[data-cid]').find('.preview-box').css('background', 'url(' + imageUrlOnServer + '?' + new Date().getTime() + ')');
|
||||||
modified(inputEl);
|
modified(inputEl);
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ define(['uploader'], function(uploader) {
|
|||||||
|
|
||||||
$('#uploadLogoBtn').on('click', function() {
|
$('#uploadLogoBtn').on('click', function() {
|
||||||
|
|
||||||
uploader.open(config.relative_path + '/admin/uploadlogo', function(image) {
|
uploader.open(RELATIVE_PATH + '/admin/uploadlogo', function(image) {
|
||||||
$('#logoUrl').val(image);
|
$('#logoUrl').val(image);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user