diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/MiscService.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Service/MiscService.php b/lib/Service/MiscService.php index 9c42fd5..c5b0d34 100644 --- a/lib/Service/MiscService.php +++ b/lib/Service/MiscService.php @@ -28,6 +28,7 @@ namespace OCA\FullTextSearch\Service; use OCA\FullTextSearch\AppInfo\Application; use OCP\ILogger; +use OCP\Util; class MiscService { @@ -87,5 +88,18 @@ class MiscService { return ((float)$usec + (float)$sec); } + + + public function addJavascript() { + Util::addStyle(Application::APP_NAME, 'fulltextsearch'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1.api'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1.settings'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1.searchbox'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1.result'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1.navigation'); + Util::addScript(Application::APP_NAME, 'fulltextsearch.v1'); + } + + } |