Aleksander Machniak
2014-06-03 bf743b7681f24c5128c7ceb9c8176a0ab15fa169
Attach nemail_notifier script only to main window
1 files modified
4 ■■■■ changed files
plugins/newmail_notifier/newmail_notifier.php 4 ●●●● patch | view | raw | blame | history
plugins/newmail_notifier/newmail_notifier.php
@@ -52,8 +52,8 @@
            $this->add_hook('preferences_save', array($this, 'prefs_save'));
        }
        else { // if ($this->rc->task == 'mail') {
            // add script when not in ajax and not in frame
            if ($this->rc->output->type == 'html' && empty($_REQUEST['_framed'])) {
            // add script when not in ajax and not in frame and only in main window
            if ($this->rc->output->type == 'html' && empty($_REQUEST['_framed']) && $this->rc->action == '') {
                $this->add_texts('localization/');
                $this->rc->output->add_label('newmail_notifier.title', 'newmail_notifier.body');
                $this->include_script('newmail_notifier.js');