Show More
@@ -28,6 +28,7 b'' | |||||
28 | var raw_edit = function(cell){ |
|
28 | var raw_edit = function(cell){ | |
29 |
|
29 | |||
30 | var md = cell.metadata |
|
30 | var md = cell.metadata | |
|
31 | var error_div = $('<div/>').css('color','red') | |||
31 |
|
32 | |||
32 | var textarea = $('<textarea/>') |
|
33 | var textarea = $('<textarea/>') | |
33 | .attr('rows','13') |
|
34 | .attr('rows','13') | |
@@ -42,6 +43,7 b'' | |||||
42 | .attr('for','metadata') |
|
43 | .attr('for','metadata') | |
43 | .text("Metadata (I know what I'm dooing and I won't complain if it breaks my notebook)") |
|
44 | .text("Metadata (I know what I'm dooing and I won't complain if it breaks my notebook)") | |
44 | ) |
|
45 | ) | |
|
46 | .append(error_div) | |||
45 | .append($('<br/>')) |
|
47 | .append($('<br/>')) | |
46 | .append( |
|
48 | .append( | |
47 | textarea |
|
49 | textarea | |
@@ -67,7 +69,7 b'' | |||||
67 | } |
|
69 | } | |
68 | catch(e) |
|
70 | catch(e) | |
69 | { |
|
71 | { | |
70 |
|
|
72 | error_div.text('Warning, invalid json, not saved'); | |
71 | } |
|
73 | } | |
72 | }, |
|
74 | }, | |
73 | Cancel: function() { |
|
75 | Cancel: function() { |
General Comments 0
You need to be logged in to leave comments.
Login now