From: John Molakvoæ Date: Thu, 20 Oct 2016 16:29:57 +0000 (+0200) Subject: Template css order X-Git-Tag: v11.0RC2~407^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1832%2Fhead;p=nextcloud-server.git Template css order Select2 systemtags removal Settings again Fix Script Signed-off-by: John Molakvoæ (skjnldsv) --- 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 @@