Show More
@@ -115,7 +115,6 var IPython = (function (IPython) { | |||||
115 | } |
|
115 | } | |
116 | }; |
|
116 | }; | |
117 |
|
117 | |||
118 |
|
||||
119 | /** |
|
118 | /** | |
120 | * Subclasses can implement override bind_events. |
|
119 | * Subclasses can implement override bind_events. | |
121 | * Be carefull to call the parent method when overwriting as it fires event. |
|
120 | * Be carefull to call the parent method when overwriting as it fires event. |
@@ -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 | // TODO: Very strange. The focusout event does not seem fire for the |
|
754 | // // TODO: Very strange. The focusout event does not seem fire for the | |
755 | // bootstrap textboxes on FF25&26... |
|
755 | // // bootstrap textboxes on FF25&26... | |
756 | e.find('input').blur(handle_blur); |
|
756 | // e.find('input').blur(handle_blur); | |
757 | e.on('DOMNodeInserted', function (event) { |
|
757 | // e.on('DOMNodeInserted', function (event) { | |
758 | var target = $(event.target); |
|
758 | // var target = $(event.target); | |
759 | if (target.is('input')) { |
|
759 | // if (target.is('input')) { | |
760 | target.blur(handle_blur); |
|
760 | // target.blur(handle_blur); | |
761 | } else { |
|
761 | // } else { | |
762 | target.find('input').blur(handle_blur); |
|
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