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:
parent
588b159dbd
commit
a43aa0dc08
0
css/opencase.css
Normal file
0
css/opencase.css
Normal file
3
js/opencase.js
Normal file
3
js/opencase.js
Normal file
@ -0,0 +1,3 @@
|
||||
(function ($, Drupal) {
|
||||
$('#edit-search-api-fulltext').attr('autocomplete', 'off');
|
||||
})(jQuery, Drupal);
|
@ -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
7
opencase.libraries.yml
Normal file
@ -0,0 +1,7 @@
|
||||
opencase-lib:
|
||||
version: 1.x
|
||||
css:
|
||||
theme:
|
||||
css/opencase.css: {}
|
||||
js:
|
||||
js/opencase.js: {}
|
@ -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
BIN
resources/ico.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Reference in New Issue
Block a user