Don't load enigma and managesieve css where it's not needed

pull/299/merge
Aleksander Machniak 9 years ago
parent d9ff47b011
commit 570f43c874

@ -80,7 +80,10 @@ class enigma extends rcube_plugin
// $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui'));
$this->load_ui();
$this->ui->add_css();
if (empty($_REQUEST['_framed']) || strpos($this->rc->action, 'plugin.enigma') === 0) {
$this->ui->add_css();
}
}
$this->add_hook('refresh', array($this, 'refresh'));

@ -84,10 +84,10 @@ class managesieve extends rcube_plugin
// include styles
$skin_path = $this->local_skin_path();
if ($this->rc->task == 'settings' || $sieve_action) {
if ($sieve_action || ($this->rc->task == 'settings' && empty($_REQUEST['_framed']))) {
$this->include_stylesheet("$skin_path/managesieve.css");
}
else {
else if ($this->rc->task == 'mail') {
$this->include_stylesheet("$skin_path/managesieve_mail.css");
}

Loading…
Cancel
Save