From 47657731433248410e681640b2a53c0783651134 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 10 May 2017 17:36:05 +0200 Subject: 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. --- modules-available/bootstrap_timepicker/config.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules-available/bootstrap_timepicker') diff --git a/modules-available/bootstrap_timepicker/config.json b/modules-available/bootstrap_timepicker/config.json index d1261653..5a0c7960 100644 --- a/modules-available/bootstrap_timepicker/config.json +++ b/modules-available/bootstrap_timepicker/config.json @@ -1,3 +1,9 @@ { - "dependencies" : [] + "dependencies" : [], + "css": { + "style.css": true + }, + "scripts": { + "clientscript.js": true + } } -- cgit v1.2.3-55-g7522