Jump to content

Edit History

Kogkalidis

Kogkalidis


TYPO

On 1/6/2014 at 4:09 PM, vekia said:

it's related to back office, not front ;)

    public function hookBackOfficeFooter($params){
        $this->context->controller->addCSS('myfile.css');
    }

@vekia I dit it by calling

$this->context->controller->addJS(
	_PS_MODULE_DIR_ . '/mymodule/views/js/admin/main.js',
    'all'
);

in the function named ”displayForm” instead of your solution in order to preserve perfomance.

I do not need it loaded outside of the module configuration form.
 

My 2c 😎

Kogkalidis

Kogkalidis


TYPO

On 1/6/2014 at 4:09 PM, vekia said:

it's related to back office, not front ;)

    public function hookBackOfficeFooter($params){
        $this->context->controller->addCSS('myfile.css');
    }

@vekia I dit it by calling

$this->context->controller->addJS(
	_PS_MODULE_DIR_ . '/mymodule/views/js/admin/main.js',
    'all'
);

in the function named ”displayForm” instead of your solution in order to preserve perfomance.

I do not need it loaded outside of the module configuration form).
 

My 2c 😎

Kogkalidis

Kogkalidis

On 1/6/2014 at 4:09 PM, vekia said:

it's related to back office, not front ;)

    public function hookBackOfficeFooter($params){
        $this->context->controller->addCSS('myfile.css');
    }

@vekia I dit it by calling

$this->context->controller->addJS(
	_PS_MODULE_DIR_ . '/mymodule/views/js/admin/main.js',
    'all'
);

in the function name ”displayForm” instead of your solution in order to preserve perfomance.

I do not need it loaded outside of the module configuration form).
 

My 2c 😎

×
×
  • Create New...