summaryrefslogtreecommitdiffstats
path: root/apps/files_external/templates
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-11 19:18:36 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-19 10:08:23 +0100
commitdf8f5425dc32a98f2c5c656215fa0e8564d6a282 (patch)
tree9d51b78436dc8f5a755503571476631876702cff /apps/files_external/templates
parentb6eb952ac61326a15108820b0dd0a1712f00dfdb (diff)
downloadnextcloud-server-df8f5425dc32a98f2c5c656215fa0e8564d6a282.tar.gz
nextcloud-server-df8f5425dc32a98f2c5c656215fa0e8564d6a282.zip
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
Diffstat (limited to 'apps/files_external/templates')
-rw-r--r--apps/files_external/templates/settings.php9
1 files changed, 0 insertions, 9 deletions
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);
- }
?>
</td>
<?php if ($_['isAdminPage']): ?>