Skip to content

Commit

Permalink
fix url issue after applying asset() function, add editor not found i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
streamtw committed Sep 12, 2016
1 parent 681b1ca commit ce305e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/controllers/LfmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getUrl($type = null)

$url = str_replace('\\','/',$url);

return $url . '/';
return $url;
}


Expand Down
6 changes: 1 addition & 5 deletions src/views/script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,6 @@ function getFileUrl(file) {
item_url = file_url;
@endif
if (path.indexOf(ds) === 0) {
path = path.substring(1);
}
if (path != ds) {
item_url = item_url + path + ds;
}
Expand Down Expand Up @@ -383,7 +379,7 @@ function getFileUrl(file) {
window.close();
}
} else {
alert('Fail to get image/file url, please contact developers.');
alert('Editor not found, cannot apply image.');
}
}
//end useFile
Expand Down

0 comments on commit ce305e5

Please sign in to comment.