From 6789bf1f4dfd32cd54a0fbe520ff3e1a6f6afb8a Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 8 May 2014 18:19:20 +0200 Subject: Moved popup-menu functions to Roundcube core for seamless integration of (stackable) skin and core menus --- program/js/common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/js/common.js') 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() { -- cgit v1.2.3