summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/input/textInput.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/views/input/textInput.js')
-rw-r--r--module/web/static/js/views/input/textInput.js6
1 files changed, 4 insertions, 2 deletions
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');