summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-27 07:37:15 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-27 07:37:15 +0000
commitb0e43c074d17bcc2bcbff3a64bb2fabc2290affa (patch)
treee7168b5afba33a552feeb6d999f00de55aab3769 /roundcubemail/program
parent241edc867d6798e721c085a26bc65db9435b58c7 (diff)
Reset pressed buttons on next click (#1485987)
git-svn-id: https://svn.roundcube.net/trunk@2876 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 88e133945..6adc7f4e6 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -22,6 +22,7 @@ function rcube_webmail()
this.env = new Object();
this.labels = new Object();
this.buttons = new Object();
+ this.buttons_sel = new Object();
this.gui_objects = new Object();
this.gui_containers = new Object();
this.commands = new Object();
@@ -1257,6 +1258,14 @@ function rcube_webmail()
this.env.last_folder_target = null;
list.draglayer.hide();
}
+
+ // reset 'pressed' buttons
+ if (this.buttons_sel) {
+ for (var id in this.buttons_sel)
+ if (typeof id != 'function')
+ this.button_out(this.buttons_sel[id], id);
+ this.buttons_sel = {};
+ }
};
this.drag_start = function(list)
@@ -3546,6 +3555,7 @@ function rcube_webmail()
else
elm.className = button.sel;
}
+ this.buttons_sel[id] = command;
}
}
};