diff --git a/apps/comments/appinfo/app.php b/apps/comments/appinfo/app.php index 71b3eff4e217..c213c44217fb 100644 --- a/apps/comments/appinfo/app.php +++ b/apps/comments/appinfo/app.php @@ -24,7 +24,6 @@ $eventDispatcher->addListener( 'OCA\Files::loadAdditionalScripts', function () { - \OCP\Util::addScript('oc-backbone-webdav'); \OCP\Util::addScript('comments', 'app'); \OCP\Util::addScript('comments', 'commentmodel'); \OCP\Util::addScript('comments', 'commentcollection'); diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php index 33628cdb41c6..6253dd99176f 100644 --- a/lib/private/legacy/template.php +++ b/lib/private/legacy/template.php @@ -133,6 +133,7 @@ public static function initTemplateEngine($renderAs) { \OC_Util::addScript('placeholder', null, true); } + OC_Util::addScript('oc-backbone-webdav', null, true); OC_Util::addScript('oc-backbone', null, true); OC_Util::addVendorScript('core', 'backbone/backbone', true); OC_Util::addVendorScript('core', 'select2/select2', true);