diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-05-08 18:19:20 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-05-08 18:19:20 +0200 |
commit | 6789bf1f4dfd32cd54a0fbe520ff3e1a6f6afb8a (patch) | |
tree | 7fe8a301a1fa514f7225424a26047d4cf7bfa79d /program/js/common.js | |
parent | ea0866a1adc9239b8b115ab2490e1dd88f3c64ec (diff) |
Moved popup-menu functions to Roundcube core for seamless integration of (stackable) skin and core menus
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/common.js b/program/js/common.js index e15c34a3b..b532c36c1 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -297,7 +297,6 @@ is_keyboard: function(e) */ keyboard_only: function(e) { - console.log(e); return rcube_event.is_keyboard(e) ? true : rcube_event.cancel(e); }, @@ -607,6 +606,11 @@ if (!String.prototype.startsWith) { }; } +// array utility function +Array.prototype.last = function() { + return this[this.length-1]; +} + // jQuery plugin to emulate HTML5 placeholder attributes on input elements jQuery.fn.placeholder = function(text) { return this.each(function() { |