From c4bd66e4b237c6a7dfd3cb0151992ffd0a7d416a Mon Sep 17 00:00:00 2001 From: Julien Rebetez Date: Mon, 26 Oct 2015 10:52:42 +0100 Subject: [PATCH] Nicer attachments editing dialog --- notebook/static/base/js/dialog.js | 110 +++++++++++------- .../js/celltoolbarpresets/attachments.js | 3 + 2 files changed, 72 insertions(+), 41 deletions(-) diff --git a/notebook/static/base/js/dialog.js b/notebook/static/base/js/dialog.js index 8492c431c..9a4e5c150 100644 --- a/notebook/static/base/js/dialog.js +++ b/notebook/static/base/js/dialog.js @@ -212,55 +212,85 @@ define(function(require) { }; var edit_attachments = function (options) { - options.name = options.name || "Cell"; - var error_div = $('
').css('color', 'red'); var message = - "Manually edit the JSON below to manipulate attachments for this " + options.name + "."; - - var textarea = $('