Merge "Hide form tooltip when form closes on escape key"
This commit is contained in:
@@ -197,6 +197,13 @@ horizon.addInitFunction(function () {
|
||||
$(document).on('mousedown keydown', '.form-field select', function (evt) {
|
||||
$(this).tooltip('hide');
|
||||
});
|
||||
// Hide the tooltip after escape button pressed
|
||||
$(document).on('keydown.esc_btn', function (evt) {
|
||||
if (evt.keyCode == 27) {
|
||||
$('.tooltip').hide();
|
||||
}
|
||||
});
|
||||
|
||||
// Hide the help text for js-capable browsers
|
||||
$('span.help-block').hide();
|
||||
});
|
||||
|
Reference in New Issue
Block a user