fix url for image replacement, too
This commit is contained in:
parent
318cb728e1
commit
48d498941e
@ -49,7 +49,7 @@ $.fn.imageUpload = function() {
|
|||||||
contentType: 'application/octet-stream',
|
contentType: 'application/octet-stream',
|
||||||
}).done(function(data){
|
}).done(function(data){
|
||||||
$input.val(data.file);
|
$input.val(data.file);
|
||||||
$img.prop('src', '/imageupload?file=' + data.file);
|
$img.prop('src', '../imageupload?file=' + data.file);
|
||||||
clearError();
|
clearError();
|
||||||
}).fail(function(xhr, error){
|
}).fail(function(xhr, error){
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user