mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Fix - Support for module to be named other than "gridfieldextensions"
This commit is contained in:
parent
dc16c34d6e
commit
4693aeb8d0
@ -5,8 +5,13 @@
|
|||||||
class GridFieldExtensions {
|
class GridFieldExtensions {
|
||||||
|
|
||||||
public static function include_requirements() {
|
public static function include_requirements() {
|
||||||
Requirements::css('gridfieldextensions/css/GridFieldExtensions.css');
|
$moduleDir = self::get_module_dir();
|
||||||
Requirements::javascript('gridfieldextensions/javascript/GridFieldExtensions.js');
|
Requirements::css($moduleDir.'/css/GridFieldExtensions.css');
|
||||||
|
Requirements::javascript($moduleDir.'/javascript/GridFieldExtensions.js');
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function get_module_dir() {
|
||||||
|
return basename(dirname(__DIR__));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user