##// END OF EJS Templates
Re-added widget textbox blur fix FF
Jonathan Frederic -
Show More
@@ -751,17 +751,17 var IPython = (function (IPython) {
751 751 };
752 752 e.on('focusin', handle_focus);
753 753 e.on('focusout', handle_blur);
754 // // TODO: Very strange. The focusout event does not seem fire for the
755 // // bootstrap textboxes on FF25&26...
756 // e.find('input').blur(handle_blur);
757 // e.on('DOMNodeInserted', function (event) {
758 // var target = $(event.target);
759 // if (target.is('input')) {
760 // target.blur(handle_blur);
761 // } else {
762 // target.find('input').blur(handle_blur);
763 // }
764 // });
754 // TODO: Very strange. The focusout event does not seem fire for the
755 // bootstrap textboxes on FF25&26...
756 e.find('input').blur(handle_blur);
757 e.on('DOMNodeInserted', function (event) {
758 var target = $(event.target);
759 if (target.is('input')) {
760 target.blur(handle_blur);
761 } else {
762 target.find('input').blur(handle_blur);
763 }
764 });
765 765 // There are times (raw_input) where we remove the element from the DOM before
766 766 // focusout is called. In this case we bind to the remove event of jQueryUI,
767 767 // which gets triggered upon removal, iff it is focused at the time.
General Comments 0
You need to be logged in to leave comments. Login now