##// END OF EJS Templates
Get cell after first conditional
Jonathan Frederic -
Show More
@@ -163,8 +163,8 var IPython = (function (IPython) {
163 help_index : '',
163 help_index : '',
164 handler : function (event) {
164 handler : function (event) {
165 var index = IPython.notebook.get_selected_index();
165 var index = IPython.notebook.get_selected_index();
166 var cell = IPython.notebook.get_cell(index);
167 if (index !== null && index !== 0) {
166 if (index !== null && index !== 0) {
167 var cell = IPython.notebook.get_cell(index);
168 if (cell && cell.at_top()) {
168 if (cell && cell.at_top()) {
169 event.preventDefault();
169 event.preventDefault();
170 IPython.notebook.command_mode();
170 IPython.notebook.command_mode();
@@ -180,8 +180,8 var IPython = (function (IPython) {
180 help_index : '',
180 help_index : '',
181 handler : function (event) {
181 handler : function (event) {
182 var index = IPython.notebook.get_selected_index();
182 var index = IPython.notebook.get_selected_index();
183 var cell = IPython.notebook.get_cell(index);
184 if (index !== null && index !== (IPython.notebook.ncells()-1)) {
183 if (index !== null && index !== (IPython.notebook.ncells()-1)) {
184 var cell = IPython.notebook.get_cell(index);
185 if (cell && cell.at_bottom()) {
185 if (cell && cell.at_bottom()) {
186 event.preventDefault();
186 event.preventDefault();
187 IPython.notebook.command_mode();
187 IPython.notebook.command_mode();
General Comments 0
You need to be logged in to leave comments. Login now