##// END OF EJS Templates
Final touches?
Jonathan Frederic -
Show More
@@ -115,7 +115,6 b' var IPython = (function (IPython) {'
115 115 }
116 116 };
117 117
118
119 118 /**
120 119 * Subclasses can implement override bind_events.
121 120 * Be carefull to call the parent method when overwriting as it fires event.
@@ -751,17 +751,17 b' 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