diff --git a/controller/viewcontroller.php b/controller/viewcontroller.php index 5cb2e1612..9d75db0e9 100644 --- a/controller/viewcontroller.php +++ b/controller/viewcontroller.php @@ -211,7 +211,6 @@ private function getTemplateParams() { 'supportsClass' => $supportsClass, 'isIE' => $isIE, 'webCalWorkaround' => $webCalWorkaround, - 'needsAutosize' => true, 'defaultColor' => '#1d2d44', 'shareeCanEditShares' => $shareeCanEditShares ? 'yes' : 'no', 'shareeCanEditCalendarProperties' => $shareeCanEditCalendarProperties ? 'yes' : 'no', diff --git a/templates/main.php b/templates/main.php index bff5c84a8..7db53ea0c 100755 --- a/templates/main.php +++ b/templates/main.php @@ -45,9 +45,6 @@ } else { $scripts[] = 'public/vendor.min'; } -if ($_['needsAutosize']) { - $scripts[] = 'vendor/autosize/dist/autosize'; -} $scripts[] = 'public/app.min'; diff --git a/tests/php/controller/viewcontrollerTest.php b/tests/php/controller/viewcontrollerTest.php index 8f010cf93..e6c9c1751 100755 --- a/tests/php/controller/viewcontrollerTest.php +++ b/tests/php/controller/viewcontrollerTest.php @@ -156,7 +156,6 @@ public function testIndex($isAssetPipelineEnabled, $showAssetPipelineError, $ser 'webCalWorkaround' => $expectsWebcalWorkaround, 'isPublic' => false, 'isEmbedded' => false, - 'needsAutosize' => true, 'isIE' => $isIE, 'token' => '', 'shareeCanEditShares' => 'no', @@ -259,7 +258,6 @@ public function testIndexFirstRunDetection($initialView, $expectedFirstRun, $exp // 'webCalWorkaround' => $expectsWebcalWorkaround, // 'isPublic' => false, // 'isEmbedded' => false, -// 'needsAutosize' => true, // 'isIE' => $isIE, // 'token' => '', // 'shareeCanEditShares' => 'no', @@ -289,7 +287,6 @@ public function testIndexFirstRunDetection($initialView, $expectedFirstRun, $exp 'webCalWorkaround' => 'no', 'isPublic' => false, 'isEmbedded' => false, - 'needsAutosize' => true, 'isIE' => false, 'token' => '', 'shareeCanEditShares' => 'no', @@ -399,7 +396,6 @@ public function testPublicIndex($isAssetPipelineEnabled, $showAssetPipelineError 'webCalWorkaround' => 'no', 'isPublic' => true, 'isEmbedded' => true, - 'needsAutosize' => true, 'isIE' => $isIE, 'shareURL' => 'fancy_protocol://owncloud-host.tld/request/uri/123/42', 'previewImage' => 'fancy_protocol://foo.bar/core/img/foo', @@ -507,7 +503,6 @@ public function testPublicIndexWithBranding($isAssetPipelineEnabled, $showAssetP 'webCalWorkaround' => 'no', 'isPublic' => true, 'isEmbedded' => false, - 'needsAutosize' => true, 'isIE' => $isIE, 'shareURL' => 'fancy_protocol://owncloud-host.tld/request/uri/123/42', 'previewImage' => 'fancy_protocol://foo.bar/core/img/foo',