From 5afe6c5ae4255c64ad1ba7b13875dcae7766ebb6 2014-11-04 18:44:08 From: Thomas Kluyver Date: 2014-11-04 18:44:08 Subject: [PATCH] Close new window on error creating terminal --- diff --git a/IPython/html/static/tree/js/terminallist.js b/IPython/html/static/tree/js/terminallist.js index 720883d..9ccf7c6 100644 --- a/IPython/html/static/tree/js/terminallist.js +++ b/IPython/html/static/tree/js/terminallist.js @@ -49,7 +49,10 @@ define([ var name = data.name; w.location = utils.url_join_encode(base_url, 'terminals', name); }, - error : utils.log_ajax_error, + error : function(jqXHR, status, error){ + w.close(); + utils.log_ajax_error(jqXHR, status, error); + }, }; var url = utils.url_join_encode( this.base_url,