From 3412e50b54e3daac8745234e21ab6e72be0ed165 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 04 Jun 2014 11:20:33 -0400
Subject: [PATCH] Fix attachment menu structure and aria-attributes

---
 plugins/password/password.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/plugins/password/password.php b/plugins/password/password.php
index e31613a..83f951b 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -70,9 +70,14 @@
         }
 
         $this->add_hook('settings_actions', array($this, 'settings_actions'));
+
         $this->register_action('plugin.password', array($this, 'password_init'));
         $this->register_action('plugin.password-save', array($this, 'password_save'));
-        $this->include_script('password.js');
+
+
+        if (strpos($rcmail->action, 'plugin.password') === 0) {
+            $this->include_script('password.js');
+        }
     }
 
     function settings_actions($args)

--
Gitblit v1.9.1