aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2016-10-20 18:29:57 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-10-21 16:56:31 +0200
commit3e5e07aa64f94bea528450d810249c74d0f8c03f (patch)
tree2dcd99a22714d77ba2f08dc0c65cd7b83e707613
parented4ed7911a9329462fef02c2d50709b3f092538e (diff)
downloadnextcloud-server-3e5e07aa64f94bea528450d810249c74d0f8c03f.tar.gz
nextcloud-server-3e5e07aa64f94bea528450d810249c74d0f8c03f.zip
Template css order
Select2 systemtags removal Settings again Fix Script Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/systemtags/appinfo/app.php3
-rw-r--r--apps/systemtags/templates/admin.php2
-rw-r--r--lib/private/legacy/template.php6
-rw-r--r--settings/templates/admin/frame.php2
-rw-r--r--settings/templates/apps.php9
5 files changed, 6 insertions, 16 deletions
diff --git a/apps/systemtags/appinfo/app.php b/apps/systemtags/appinfo/app.php
index af91e5fdbcd..e3be0d7556e 100644
--- a/apps/systemtags/appinfo/app.php
+++ b/apps/systemtags/appinfo/app.php
@@ -31,9 +31,6 @@ $eventDispatcher->addListener(
'OCA\Files::loadAdditionalScripts',
function() {
// FIXME: no public API for these ?
- \OC_Util::addVendorScript('select2/select2');
- \OC_Util::addVendorStyle('select2/select2');
- \OCP\Util::addScript('select2-toggleselect');
\OCP\Util::addScript('oc-backbone-webdav');
\OCP\Util::addScript('systemtags/systemtags');
\OCP\Util::addScript('systemtags/systemtagmodel');
diff --git a/apps/systemtags/templates/admin.php b/apps/systemtags/templates/admin.php
index 883e998ed61..de97b283d09 100644
--- a/apps/systemtags/templates/admin.php
+++ b/apps/systemtags/templates/admin.php
@@ -19,8 +19,6 @@
*
*/
-vendor_script('core', 'select2/select2');
-vendor_style('core', 'select2/select2');
script('core', [
'oc-backbone-webdav',
'systemtags/systemtags',
diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php
index b43b4da839a..7520ffd44ed 100644
--- a/lib/private/legacy/template.php
+++ b/lib/private/legacy/template.php
@@ -117,7 +117,7 @@ class OC_Template extends \OC\Template\Base {
OC_Util::addStyle("fonts",null,true);
OC_Util::addStyle("icons",null,true);
OC_Util::addStyle("header",null,true);
- OC_Util::addStyle("inputs",null,true);
+ OC_Util::addStyle("inputs");
OC_Util::addStyle("styles",null,true);
// avatars
@@ -126,6 +126,10 @@ class OC_Template extends \OC\Template\Base {
\OC_Util::addScript('placeholder', null, true);
}
+ OC_Util::addVendorScript('select2/select2');
+ OC_Util::addVendorStyle('select2/select2', null, true);
+ OC_Util::addScript('select2-toggleselect');
+
OC_Util::addScript('oc-backbone', null, true);
OC_Util::addVendorScript('core', 'backbone/backbone', true);
OC_Util::addVendorScript('snapjs/dist/latest/snap', null, true);
diff --git a/settings/templates/admin/frame.php b/settings/templates/admin/frame.php
index 1d9f6dc7a78..761d76c4434 100644
--- a/settings/templates/admin/frame.php
+++ b/settings/templates/admin/frame.php
@@ -25,8 +25,6 @@ style('settings', 'settings');
script('settings', [ 'settings', 'admin', 'log', 'certificates'] );
script('core', ['multiselect', 'setupchecks']);
script('files', 'jquery.fileupload');
-vendor_script('select2/select2');
-vendor_style('select2/select2');
?>
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index ea62acd9945..46fd5bd0e40 100644
--- a/settings/templates/apps.php
+++ b/settings/templates/apps.php
@@ -1,16 +1,9 @@
<?php
style('settings', 'settings');
-vendor_style(
- 'core',
- [
- 'select2/select2',
- ]
-);
vendor_script(
'core',
[
- 'handlebars/handlebars',
- 'select2/select2'
+ 'handlebars/handlebars'
]
);
script(