From ce305e54ca144a0d6fcfa5715dce56771b20ff58 Mon Sep 17 00:00:00 2001 From: StreamHuang Date: Mon, 12 Sep 2016 10:53:19 +0800 Subject: [PATCH] fix url issue after applying asset() function, add editor not found issue --- src/controllers/LfmController.php | 2 +- src/views/script.blade.php | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/controllers/LfmController.php b/src/controllers/LfmController.php index 39ca1a54..d0adc2d2 100644 --- a/src/controllers/LfmController.php +++ b/src/controllers/LfmController.php @@ -142,7 +142,7 @@ public function getUrl($type = null) $url = str_replace('\\','/',$url); - return $url . '/'; + return $url; } diff --git a/src/views/script.blade.php b/src/views/script.blade.php index a9e7f487..93367532 100644 --- a/src/views/script.blade.php +++ b/src/views/script.blade.php @@ -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; } @@ -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