From 50a03a0a9e5dacc467198ea573ee10763ccfc3a2 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Tue, 2 Jan 2018 18:18:55 -0800 Subject: [PATCH] Display a "Close" button on load notebook error --- notebook/static/notebook/js/notebook.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index adbbaabcc..39b17d2b2 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -3179,8 +3179,14 @@ define([ title: i18n.msg._("Error loading notebook"), body : msg, buttons : { - "OK": {} - } + "Close": { + class : 'btn-danger', + click : function () { + window.close(); + } + }, + "Ok": {} + } }); };