Merge sharing backend JS

Removes 8 requests.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-03-24 20:17:38 +01:00
parent 2cd79a8d3d
commit 4d68324ba6
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,11 @@
[
"shareconfigmodel.js",
"shareitemmodel.js",
"sharesocialmanager.js",
"sharedialogresharerinfoview.js",
"sharedialoglinkshareview.js",
"sharedialogexpirationview.js",
"sharedialogshareelistview.js",
"sharedialogview.js",
"share.js"
]

View File

@ -50,6 +50,7 @@ use OCP\IUserManager;
use OCP\IUserSession;
use OCP\IDBConnection;
use OCP\IConfig;
use OCP\Util;
/**
* This class provides the ability for apps to share their content between users.
@ -92,15 +93,7 @@ class Share extends Constants {
'supportedFileExtensions' => $supportedFileExtensions
);
if(count(self::$backendTypes) === 1) {
\OC_Util::addScript('core', 'shareconfigmodel');
\OC_Util::addScript('core', 'shareitemmodel');
\OC_Util::addScript('core', 'sharesocialmanager');
\OC_Util::addScript('core', 'sharedialogresharerinfoview');
\OC_Util::addScript('core', 'sharedialoglinkshareview');
\OC_Util::addScript('core', 'sharedialogexpirationview');
\OC_Util::addScript('core', 'sharedialogshareelistview');
\OC_Util::addScript('core', 'sharedialogview');
\OC_Util::addScript('core', 'share');
Util::addScript('core', 'merged-share-backend');
\OC_Util::addStyle('core', 'share');
}
return true;