diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-09-04 16:13:59 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-09-04 16:13:59 +0300 |
commit | 6544f1240f8d5329a28be6b3ead98e6e03c1682e (patch) | |
tree | 2edef74d28e43b7fb1cd0d340f70c723a4bdc94e | |
parent | cacf13615f4fed8d6e94f05c70361128b62e8de9 (diff) |
+addJavascript()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-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'); + } + + } |