From 2d2a1816ff1c668d6a00fc792addb39848765753 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 25 Mar 2013 21:32:11 +0100 Subject: tooltips for input elements --- module/web/static/js/views/input/textInput.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/web/static/js/views/input/textInput.js') diff --git a/module/web/static/js/views/input/textInput.js b/module/web/static/js/views/input/textInput.js index 7252ce289..36cdf9f06 100644 --- a/module/web/static/js/views/input/textInput.js +++ b/module/web/static/js/views/input/textInput.js @@ -5,10 +5,12 @@ define(['jquery', 'backbone', 'underscore', './inputView'], function($, Backbone // TODO tagName: 'input', events: { - 'keypress': 'onChange' + 'keypress': 'onChange', + 'focus': 'showTooltip', + 'focusout': 'hideTooltip' }, - render: function() { + renderInput: function() { this.$el.attr('type', 'text'); this.$el.attr('name', 'textInput'); -- cgit v1.2.3