mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Final touches?
This commit is contained in:
parent
c5fb037e41
commit
bfc51c2a29
@ -115,7 +115,6 @@ var IPython = (function (IPython) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Subclasses can implement override bind_events.
|
||||
* Be carefull to call the parent method when overwriting as it fires event.
|
||||
|
@ -751,17 +751,17 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
e.on('focusin', handle_focus);
|
||||
e.on('focusout', handle_blur);
|
||||
// TODO: Very strange. The focusout event does not seem fire for the
|
||||
// bootstrap textboxes on FF25&26...
|
||||
e.find('input').blur(handle_blur);
|
||||
e.on('DOMNodeInserted', function (event) {
|
||||
var target = $(event.target);
|
||||
if (target.is('input')) {
|
||||
target.blur(handle_blur);
|
||||
} else {
|
||||
target.find('input').blur(handle_blur);
|
||||
}
|
||||
});
|
||||
// // TODO: Very strange. The focusout event does not seem fire for the
|
||||
// // bootstrap textboxes on FF25&26...
|
||||
// e.find('input').blur(handle_blur);
|
||||
// e.on('DOMNodeInserted', function (event) {
|
||||
// var target = $(event.target);
|
||||
// if (target.is('input')) {
|
||||
// target.blur(handle_blur);
|
||||
// } else {
|
||||
// target.find('input').blur(handle_blur);
|
||||
// }
|
||||
// });
|
||||
// There are times (raw_input) where we remove the element from the DOM before
|
||||
// focusout is called. In this case we bind to the remove event of jQueryUI,
|
||||
// which gets triggered upon removal, iff it is focused at the time.
|
||||
|
Loading…
Reference in New Issue
Block a user