Skip to content

Commit 19d1ca1

Browse files
authored
Merge pull request #31 from CCPBioSim/views
simplify css and js
2 parents 3c56348 + f0841ae commit 19d1ca1

18 files changed

Lines changed: 36 additions & 60 deletions

File tree

com_ccpbiosim/media/css/list.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

com_ccpbiosim/media/css/software.css

Whitespace-only changes.

com_ccpbiosim/media/css/workshop.css

Whitespace-only changes.

com_ccpbiosim/media/joomla.asset.json

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,14 @@
2121
}
2222
},
2323
{
24-
"name": "com_ccpbiosim.list",
24+
"name": "com_ccpbiosim.site",
2525
"type": "style",
26-
"uri": "com_ccpbiosim/list.css"
26+
"uri": "com_ccpbiosim/site.css"
2727
},
2828
{
29-
"name": "com_ccpbiosim.workshop",
30-
"type": "style",
31-
"uri": "com_ccpbiosim/workshop.css"
32-
},
33-
{
34-
"name": "com_ccpbiosim.workshop",
35-
"type": "script",
36-
"uri": "com_ccpbiosim/workshop.js"
37-
},
38-
{
39-
"name": "com_ccpbiosim.software",
40-
"type": "style",
41-
"uri": "com_ccpbiosim/software.css"
42-
},
43-
{
44-
"name": "com_ccpbiosim.software",
45-
"type": "script",
46-
"uri": "com_ccpbiosim/software.js"
47-
},
48-
{
49-
"name": "com_ccpbiosim.teams",
50-
"type": "style",
51-
"uri": "com_ccpbiosim/teams.css"
52-
},
53-
{
54-
"name": "com_ccpbiosim.teams",
29+
"name": "com_ccpbiosim.site",
5530
"type": "script",
56-
"uri": "com_ccpbiosim/teams.js"
31+
"uri": "com_ccpbiosim/site.js"
5732
}
5833
]
5934
}

com_ccpbiosim/media/js/software.js

Whitespace-only changes.

com_ccpbiosim/media/js/workshop.js

Whitespace-only changes.

com_ccpbiosim/site/tmpl/coreteammembers/default.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
$canChange = $user->authorise('core.edit.state', 'com_ccpbiosim');
3030
$canDelete = $user->authorise('core.delete', 'com_ccpbiosim');
3131

32-
// Import CSS
32+
// Import CSS & JS
3333
$wa = $this->document->getWebAssetManager();
34-
$wa->useStyle('com_ccpbiosim.list');
34+
$wa->useStyle('com_ccpbiosim.site')
35+
->useScript('com_ccpbiosim.site');
3536
?>
3637

3738
<?php if ($this->params->get('show_page_heading')) : ?>

com_ccpbiosim/site/tmpl/coreteammembers/list.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
$canChange = $user->authorise('core.edit.state', 'com_ccpbiosim');
3030
$canDelete = $user->authorise('core.delete', 'com_ccpbiosim');
3131

32-
// Import CSS
32+
// Import CSS & JS
3333
$wa = $this->document->getWebAssetManager();
34-
$wa->useStyle('com_ccpbiosim.list');
34+
$wa->useStyle('com_ccpbiosim.site')
35+
->useScript('com_ccpbiosim.site');
3536
?>
3637

3738
<?php if ($this->params->get('show_page_heading')) : ?>

0 commit comments

Comments
 (0)