diff --git a/bower.json b/bower.json index 0136a82da6..f2e439e906 100644 --- a/bower.json +++ b/bower.json @@ -16,9 +16,9 @@ "marked": "~0.5", "MathJax": "^2.7.4", "moment": "~2.19.3", - "preact": "https://unpkg.com/preact@^7.2.0/dist/preact.min.js", - "preact-compat": "https://unpkg.com/preact-compat@^3.14.3/dist/preact-compat.min.js", - "proptypes": "https://unpkg.com/proptypes@^0.14.4/index.js", + "preact": "https://unpkg.com/preact@~7.2.0/dist/preact.min.js", + "preact-compat": "https://unpkg.com/preact-compat@~3.14.3/dist/preact-compat.min.js", + "proptypes": "https://unpkg.com/proptypes@~0.14.4/index.js", "requirejs": "~2.2", "requirejs-text": "~2.0.15", "requirejs-plugins": "~1.0.3", diff --git a/notebook/static/base/js/dialog.js b/notebook/static/base/js/dialog.js index b59d9908b1..4aa50f1c16 100644 --- a/notebook/static/base/js/dialog.js +++ b/notebook/static/base/js/dialog.js @@ -65,9 +65,8 @@ define(['jquery', .attr("aria-hidden", "true") .html("×") ).append( - $("

") - .addClass('modal-title') - .text(options.title || "") + options.type ? options.type.addClass('modal-title').text(options.title || "") + : $("

").addClass('modal-title').text(options.title || "") ) ).append( $("
") diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 556f3999a4..648b8e7922 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1577,6 +1577,7 @@ define([ notebook: this, keyboard_manager: this.keyboard_manager, title : i18n.msg._("Use markdown headings"), + type : $("

"), body : $("

").text( i18n.msg._('Jupyter no longer uses special heading cells. ' + 'Instead, write your headings in Markdown cells using # characters:')