From 9f9c4975828f67b8ef2729193bc48399ff0465b3 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 27 Mar 2013 17:52:33 +0100 Subject: animations on settings page, highlight modified fields --- module/web/static/js/views/input/inputView.js | 4 ++-- module/web/static/js/views/input/textInput.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'module/web/static/js/views/input') diff --git a/module/web/static/js/views/input/inputView.js b/module/web/static/js/views/input/inputView.js index 56087c516..ed78d2d30 100644 --- a/module/web/static/js/views/input/inputView.js +++ b/module/web/static/js/views/input/inputView.js @@ -22,15 +22,15 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { render: function() { this.renderInput(); - // data for tooltips if (this.description && this.tooltip) { this.$el.data('content', this.description); + // TODO: render default value in popup? // this.$el.data('title', "TODO: title"); this.$el.popover({ placement: 'right', trigger: 'hover', - delay: { show: 500, hide: 100 } +// delay: { show: 500, hide: 100 } }); } diff --git a/module/web/static/js/views/input/textInput.js b/module/web/static/js/views/input/textInput.js index 36cdf9f06..3a6631a0b 100644 --- a/module/web/static/js/views/input/textInput.js +++ b/module/web/static/js/views/input/textInput.js @@ -5,7 +5,7 @@ define(['jquery', 'backbone', 'underscore', './inputView'], function($, Backbone // TODO tagName: 'input', events: { - 'keypress': 'onChange', + 'keyup': 'onChange', 'focus': 'showTooltip', 'focusout': 'hideTooltip' }, -- cgit v1.2.3