Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-09-04 16:13:59 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-09-04 16:13:59 +0300
commit6544f1240f8d5329a28be6b3ead98e6e03c1682e (patch)
tree2edef74d28e43b7fb1cd0d340f70c723a4bdc94e /lib
parentcacf13615f4fed8d6e94f05c70361128b62e8de9 (diff)
+addJavascript()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/MiscService.php14
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');
+ }
+
+
}