[Kimchi-devel] [PATCH V3 27/34] Correctly join help pathes for plugins case
Lucio Correia
luciojhc at linux.vnet.ibm.com
Wed Jul 8 19:17:59 UTC 2015
When generating the help path for a plugin, a slash was
missing in the string.
Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
Signed-off-by: Gustavo Y. Ribeiro <gyr at linux.vnet.ibm.com>
---
ui/js/src/wok.main.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js
index f046466..f4c9940 100644
--- a/ui/js/src/wok.main.js
+++ b/ui/js/src/wok.main.js
@@ -335,7 +335,7 @@ wok.checkHelpFile = function(path) {
if (/^tabs/.test(path))
url = path.replace("tabs", "help/" + lang);
else if (/^plugins/.test(path))
- url = path.slice(0, path.lastIndexOf('/')) + "help/" + lang + path.slice(path.lastIndexOf('/'));
+ url = path.slice(0, path.lastIndexOf('/')) + "/help/" + lang + path.slice(path.lastIndexOf('/'));
// Checking if help page exist.
$.ajax({
url: url,
--
1.7.1
More information about the Kimchi-devel
mailing list