Added css and js

CSS file is empty as yet, but js has thing to remove autocomplete from search box
This commit is contained in:
naomi 2018-05-07 18:54:08 +02:00
parent 588b159dbd
commit a43aa0dc08
6 changed files with 24 additions and 0 deletions

0
css/opencase.css Normal file
View File

3
js/opencase.js Normal file
View File

@ -0,0 +1,3 @@
(function ($, Drupal) {
$('#edit-search-api-fulltext').attr('autocomplete', 'off');
})(jQuery, Drupal);

View File

@ -3,3 +3,8 @@ type: module
description: 'Simple Case Management'
core: 8.x
package: 'OpenCase'
dependencies:
- opencase_entities
- opencase_search
libraries:
- opencase/opencase-lib

7
opencase.libraries.yml Normal file
View File

@ -0,0 +1,7 @@
opencase-lib:
version: 1.x
css:
theme:
css/opencase.css: {}
js:
js/opencase.js: {}

View File

@ -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

BIN
resources/ico.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB