Remove mainUrl.substr(1) makes js code not to be load

pull/2837/head
Julio Montoya 6 years ago
parent c6a2618ca2
commit e512023f6f
  1. 7
      assets/js/app.js

@ -13,11 +13,10 @@ var legacyIndex = Routing.generate('legacy_index');
var mainUrl = Routing.generate('web.main');
var webAjax = Routing.generate('web.ajax');
/*console.log(homePublicUrl);
console.log(homePublicUrl);
console.log(legacyIndex);
console.log(mainUrl);
console.log(webAjax);*/
console.log(webAjax);
var ajax_url = webAjax + 'chat.ajax.php';
var online_button = '<img src="' + homePublicUrl + 'img/statusonline.png">';
@ -556,7 +555,7 @@ if (typeof CKEDITOR !== 'undefined') {
plugins.forEach(function (plugin) {
CKEDITOR.plugins.addExternal(
plugin,
mainUrl.substr(1) + 'inc/lib/javascript/ckeditor/plugins/' + plugin + '/'
mainUrl + 'inc/lib/javascript/ckeditor/plugins/' + plugin + '/'
);
});

Loading…
Cancel
Save