diff options
author | Simon Rettberg | 2017-05-10 17:36:05 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-10 17:36:05 +0200 |
commit | 47657731433248410e681640b2a53c0783651134 (patch) | |
tree | 3ee31a268b89ec154be6169c0139067f066495c0 /modules-available/js_stupidtable | |
parent | [locationinfo] install: Match table column type to referenced table (diff) | |
download | slx-admin-47657731433248410e681640b2a53c0783651134.tar.gz slx-admin-47657731433248410e681640b2a53c0783651134.tar.xz slx-admin-47657731433248410e681640b2a53c0783651134.zip |
Add support to declare multiple css/js per module with loading condition:
A css/js can be declared to only load if the module in question is the
page module being rendered, or to always be loaded even if the module
is just a dependency. The second case is useful for plugin type
modules. See one of the config.json files updated in this commit on
how to specify css/js to load. true = always load, false = only if page
module.
Diffstat (limited to 'modules-available/js_stupidtable')
-rw-r--r-- | modules-available/js_stupidtable/config.json | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules-available/js_stupidtable/config.json b/modules-available/js_stupidtable/config.json index 9e26dfee..cf932d7e 100644 --- a/modules-available/js_stupidtable/config.json +++ b/modules-available/js_stupidtable/config.json @@ -1 +1,8 @@ -{}
\ No newline at end of file +{ + "css": { + "style.css": true + }, + "scripts": { + "clientscript.js": true + } +}
\ No newline at end of file |