diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 269666bb0..e8bad9805 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -57,6 +57,13 @@ class Module */ private $cssdir; + /** + * Directory for Javascript + * + * @var string + */ + private $jsdir; + /** * Base application directory * @@ -950,6 +957,26 @@ class Module return $this->cssdir; } + /** + * Get the module's JS directory + * + * @return string + */ + public function getJsDir() + { + return $this->jsdir; + } + + /** + * Get the module's JS asset directory + * + * @return string + */ + public function getJsAssetDir() + { + return join(DIRECTORY_SEPARATOR, [$this->assetDir, 'js']); + } + /** * Get the module's controller directory *