From df8f5425dc32a98f2c5c656215fa0e8564d6a282 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Tue, 11 Aug 2015 19:18:36 +0100 Subject: Load custom JS for all backends/auth mechanisms Loading custom JS on a per-backend basis added needless complexity and made dealing with async required. Now all backends/auth mechanisms load custom JS in PHP --- apps/files_external/templates/settings.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'apps/files_external/templates') diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 589574bbae4..611c5807a5f 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -106,15 +106,6 @@ foreach ($storage->getAuthMechanism()->getParameters() as $parameter) { writeParameterInput($parameter, $options, ['auth-param']); } - - $customJs = $storage->getBackend()->getCustomJs(); - if (isset($customJs)) { - \OCP\Util::addScript('files_external', $customJs); - } - $customJsAuth = $storage->getAuthMechanism()->getCustomJs(); - if (isset($customJsAuth)) { - \OCP\Util::addScript('files_external', $customJsAuth); - } ?> -- cgit v1.2.3