public function setMedia() { parent::setMedia(); if (Module::isInstalled('agilesellerlistoptions')) { $this->addJS(array(_PS_ROOT_DIR_ . '/modules/agilesellerlistoptions/js/listoptions.js')); } }
public function setMedia() { parent::setMedia(); $bo_theme = Validate::isLoadedObject($this->context->employee) && $this->context->employee->bo_theme ? $this->context->employee->bo_theme : 'default'; if (!file_exists(_PS_BO_ALL_THEMES_DIR_ . $bo_theme . DIRECTORY_SEPARATOR . 'template')) { $bo_theme = 'default'; } $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.iframe-transport.js'); $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload.js'); $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload-process.js'); $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload-validate.js'); $this->addJs(__PS_BASE_URI__ . 'js/vendor/spin.js'); $this->addJs(__PS_BASE_URI__ . 'js/vendor/ladda.js'); }