Skip to content
Snippets Groups Projects
Verified Commit 88f4e609 authored by Kevin Cristiano's avatar Kevin Cristiano :earth_americas:
Browse files

dev/core#1637 and dev/core#1651 fix paths

parent f5750bf0
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@
});
}
CRM.loadScript(CRM.config.packagesBase + 'jquery/plugins/jquery.jeditable.min.js').done(function() {
CRM.loadScript(CRM.config.packagesBase.replace(/\/+$/, '') + '/jquery/plugins/jquery.jeditable.min.js').done(function() {
$i.editable(callback, settings);
});
......
......@@ -370,7 +370,7 @@
"theme": 'classic',
"dots": false,
"icons": false,
"url": CRM.config.packagesBase + 'jquery/plugins/jstree/themes/classic/style.css'
"url": CRM.config.packagesBase.replace(/\/+$/, '') + '/jquery/plugins/jstree/themes/classic/style.css'
},
'plugins': ['themes', 'json_data', 'ui', 'search']
}).bind('loaded.jstree', function () {
......
......@@ -54,8 +54,8 @@
function initialize() {
var
browseUrl = CRM.config.packagesBase + "kcfinder/browse.php?cms=civicrm",
uploadUrl = CRM.config.packagesBase + "kcfinder/upload.php?cms=civicrm&format=json",
browseUrl = CRM.config.packagesBase.replace(/\/+$/, '') + "/kcfinder/browse.php?cms=civicrm",
uploadUrl = CRM.config.packagesBase.replace(/\/+$/, '') + "/kcfinder/upload.php?cms=civicrm&format=json",
preset = $(item).data('preset') || 'default',
// This variable is always an array but a legacy extension could be setting it as a string.
customConfig = (typeof CRM.config.CKEditorCustomConfig === 'string') ? CRM.config.CKEditorCustomConfig :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment