Revert "inline editing not working and other js packages issues"
authorTim Otten <totten@civicrm.org>
Mon, 16 Mar 2020 00:20:12 +0000 (17:20 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 16 Mar 2020 00:20:12 +0000 (17:20 -0700)
This reverts commit c68b3313741a367e2510ea6be54895405e4438ca.

js/jquery/jquery.crmEditable.js
js/view/crm.designer.js
js/wysiwyg/crm.ckeditor.js

index cfbdb446a42f362e5766adc414592b72c6361fd2..b68b27f0a24012a04ecf7d34a41526bfe4b31902 100644 (file)
           });
       }
 
-      CRM.loadScript(CRM.config.packagesBase.replace(/\/+$/, '') + '/jquery/plugins/jquery.jeditable.min.js').done(function() {
+      CRM.loadScript(CRM.config.packagesBase + 'jquery/plugins/jquery.jeditable.min.js').done(function() {
         $i.editable(callback, settings);
       });
 
index ec3ae53c4fa9bdeae0c581deb3b5104a44e721aa..9d43b92bf06322c2066a6626cd5a454842d8779a 100644 (file)
           "theme": 'classic',
           "dots": false,
           "icons": false,
-          "url": CRM.config.packagesBase.replace(/\/+$/, '') + '/jquery/plugins/jstree/themes/classic/style.css'
+          "url": CRM.config.packagesBase + 'jquery/plugins/jstree/themes/classic/style.css'
         },
         'plugins': ['themes', 'json_data', 'ui', 'search']
       }).bind('loaded.jstree', function () {
index b970da4568c5787f9deae3a0d5f314b2a16f4bba..59bf880df9f63f7eca131e784606be8592be83bb 100644 (file)
@@ -54,8 +54,8 @@
 
     function initialize() {
       var
-        browseUrl = CRM.config.packagesBase.replace(/\/+$/, '') + "/kcfinder/browse.php?cms=civicrm",
-        uploadUrl = CRM.config.packagesBase.replace(/\/+$/, '') + "/kcfinder/upload.php?cms=civicrm&format=json",
+        browseUrl = CRM.config.packagesBase + "kcfinder/browse.php?cms=civicrm",
+        uploadUrl = CRM.config.packagesBase + "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 :