summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js6
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() {