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 0000000..7c843d4 Binary files /dev/null and b/resources/ico.png differ