summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-06-03 19:13:05 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-06-03 19:13:05 +0200
commitf0928eac13b9161e251a779f229e37ec526fd590 (patch)
tree330af1c31fbf5a3d2035d440678c31a9b3f0b4dc /program/js/list.js
parente75d5e813a900d65ad3e853d3f3f214c0536dba7 (diff)
Fix keyboard navigation and focus/blur behavior in list widgets; register real link element as menu opener
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 33693abd8..837a8459d 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -76,6 +76,9 @@ function rcube_list_widget(list, p)
if (p && typeof p === 'object')
for (var n in p)
this[n] = p[n];
+
+ // register this instance
+ rcube_list_widget._instances.push(this);
};
@@ -1791,3 +1794,6 @@ column_replace: function(from, to)
rcube_list_widget.prototype.addEventListener = rcube_event_engine.prototype.addEventListener;
rcube_list_widget.prototype.removeEventListener = rcube_event_engine.prototype.removeEventListener;
rcube_list_widget.prototype.triggerEvent = rcube_event_engine.prototype.triggerEvent;
+
+// static
+rcube_list_widget._instances = [];