diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index 7906d5602..0b5d834fe 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -223,7 +223,7 @@ define([ keyboard_manager: that.notebook.keyboard_manager}); }); this.element.find('#search_and_replace').click(function(event) { - that.notebook.show_search_and_replace(event); + that.actions.call('ipython.search-and-replace-dialog', event, that); }); // View diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 3ad900886..22d2a5eb1 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -325,11 +325,6 @@ define(function (require) { var x = new commandpalette.CommandPalette(this); }; - Notebook.prototype.show_search_and_replace = function(event) { - var kbd = this.keyboard_manager; - kbd.actions.call('ipython.search-and-replace-dialog', event, kbd); - } - /** * Trigger a warning dialog about missing functionality from newer minor versions */