summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-18 23:18:37 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-18 23:18:37 +0100
commit891474b0d6b8cc77a8480cd91f1e48ad3bc3e73b (patch)
treededc4a94ec16651266bf15d46a6687efb901c63e /core/templates
parent49318b4d93b4dc5fbd58fa87b2efa8f1577fb7b7 (diff)
parent51a22431ee824357dce0100cb000032f29aabd47 (diff)
downloadnextcloud-server-891474b0d6b8cc77a8480cd91f1e48ad3bc3e73b.tar.gz
nextcloud-server-891474b0d6b8cc77a8480cd91f1e48ad3bc3e73b.zip
Merge pull request #12759 from owncloud/core-reduce-js-and-css
make sure styles and scripts are only loaded once
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/installation.php6
-rw-r--r--core/templates/login.php13
2 files changed, 14 insertions, 5 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php
index 9ef63dbfe8c..0b3b0d46c5c 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -1,3 +1,9 @@
+<?php
+script('core', [
+ 'jquery-showpassword',
+ 'installation'
+]);
+?>
<input type='hidden' id='hasMySQL' value='<?php p($_['hasMySQL']) ?>'>
<input type='hidden' id='hasSQLite' value='<?php p($_['hasSQLite']) ?>'>
<input type='hidden' id='hasPostgreSQL' value='<?php p($_['hasPostgreSQL']) ?>'>
diff --git a/core/templates/login.php b/core/templates/login.php
index 86a1b605df5..2198f063dbc 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -1,5 +1,11 @@
<?php /** @var $l OC_L10N */ ?>
-<?php vendor_script('jsTimezoneDetect/jstz') ?>
+<?php
+vendor_script('jsTimezoneDetect/jstz');
+script('core', [
+ 'visitortimezone',
+ 'lostpassword'
+]);
+?>
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
<form method="post" name="login">
@@ -65,8 +71,5 @@
</ul>
</fieldset>
</form>
-<?php } ?>
+<?php }
-<?php
-OCP\Util::addscript('core', 'visitortimezone');
-OCP\Util::addScript('core', 'lostpassword');