From a43aa0dc087ecb627c96b3dfddfec02421fb9f57 Mon Sep 17 00:00:00 2001 From: naomi Date: Mon, 7 May 2018 18:54:08 +0200 Subject: [PATCH] Added css and js CSS file is empty as yet, but js has thing to remove autocomplete from search box --- css/opencase.css | 0 js/opencase.js | 3 +++ opencase.info.yml | 5 +++++ opencase.libraries.yml | 7 +++++++ opencase.module | 9 +++++++++ resources/ico.png | Bin 0 -> 5944 bytes 6 files changed, 24 insertions(+) create mode 100644 css/opencase.css create mode 100644 js/opencase.js create mode 100644 opencase.libraries.yml create mode 100644 resources/ico.png diff --git a/css/opencase.css b/css/opencase.css new file mode 100644 index 0000000..e69de29 diff --git a/js/opencase.js b/js/opencase.js new file mode 100644 index 0000000..dd15db1 --- /dev/null +++ b/js/opencase.js @@ -0,0 +1,3 @@ +(function ($, Drupal) { + $('#edit-search-api-fulltext').attr('autocomplete', 'off'); +})(jQuery, Drupal); diff --git a/opencase.info.yml b/opencase.info.yml index 7bb70aa..22c21da 100644 --- a/opencase.info.yml +++ b/opencase.info.yml @@ -3,3 +3,8 @@ type: module description: 'Simple Case Management' core: 8.x package: 'OpenCase' +dependencies: + - opencase_entities + - opencase_search +libraries: + - opencase/opencase-lib diff --git a/opencase.libraries.yml b/opencase.libraries.yml new file mode 100644 index 0000000..dcb596d --- /dev/null +++ b/opencase.libraries.yml @@ -0,0 +1,7 @@ +opencase-lib: + version: 1.x + css: + theme: + css/opencase.css: {} + js: + js/opencase.js: {} diff --git a/opencase.module b/opencase.module index d5b6739..136b7a0 100644 --- a/opencase.module +++ b/opencase.module @@ -7,6 +7,15 @@ use Drupal\Core\Routing\RouteMatchInterface; +/** + * Implements hook_page_attachments + * + * Add the opencase library to every page + */ +function opencase_page_attachments(array &$page) { + $page['#attached']['library'][] = 'opencase/opencase-lib'; +} + /** * Implements hook_link_alter diff --git a/resources/ico.png b/resources/ico.png new file mode 100644 index 0000000000000000000000000000000000000000..7c843d42b67bd191b04d5b88057c9598b8761cf0 GIT binary patch literal 5944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