Show More
@@ -751,17 +751,17 var IPython = (function (IPython) { | |||||
751 | }; |
|
751 | }; | |
752 | e.on('focusin', handle_focus); |
|
752 | e.on('focusin', handle_focus); | |
753 | e.on('focusout', handle_blur); |
|
753 | e.on('focusout', handle_blur); | |
754 |
|
|
754 | // TODO: Very strange. The focusout event does not seem fire for the | |
755 |
|
|
755 | // bootstrap textboxes on FF25&26... | |
756 |
|
|
756 | e.find('input').blur(handle_blur); | |
757 |
|
|
757 | e.on('DOMNodeInserted', function (event) { | |
758 |
|
|
758 | var target = $(event.target); | |
759 |
|
|
759 | if (target.is('input')) { | |
760 |
|
|
760 | target.blur(handle_blur); | |
761 |
|
|
761 | } else { | |
762 |
|
|
762 | target.find('input').blur(handle_blur); | |
763 |
|
|
763 | } | |
764 |
|
|
764 | }); | |
765 | // There are times (raw_input) where we remove the element from the DOM before |
|
765 | // There are times (raw_input) where we remove the element from the DOM before | |
766 | // focusout is called. In this case we bind to the remove event of jQueryUI, |
|
766 | // focusout is called. In this case we bind to the remove event of jQueryUI, | |
767 | // which gets triggered upon removal, iff it is focused at the time. |
|
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