##// END OF EJS Templates
remove unused security warning
MinRK -
Show More
@@ -242,17 +242,6 b' var IPython = (function (IPython) {'
242 242 this.element.find('div.text_cell_render').html(text);
243 243 };
244 244
245 TextCell.prototype.insert_security_warning = function() {
246 // Inject a security warning into the TextCell's rendered div.
247 var e = this.element.find('div.text_cell_render');
248 e.empty();
249 var warning = "This cell contains content that is unsafe from a security " +
250 "standpoint. This unsafe content includes all JavaScript code " +
251 "and CSS styling. To fix the problem, please edit the cell " +
252 "and remove the unsafe content."
253 e.append($('<div/>').addClass('alert alert-error').text(warning));
254 }
255
256 245 /**
257 246 * @method at_top
258 247 * @return {Boolean}
@@ -11,10 +11,6 b' div.text_cell_render {'
11 11 border-style: none;
12 12 padding: 0.5em 0.5em 0.5em @code_padding;
13 13 color: @textColor;
14
15 .alert.alert-error {
16 margin: 0px;
17 }
18 14 }
19 15
20 16 a.anchor-link:link {
@@ -166,7 +166,7 b' p.p-space{margin-bottom:10px}'
166 166 .rendered_html img{display:block;margin-left:auto;margin-right:auto}
167 167 .rendered_html *+img{margin-top:1em}
168 168 div.text_cell{padding:5px 5px 5px 0;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;display:flex;flex-direction:row;align-items:stretch}
169 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000}div.text_cell_render .alert.alert-error{margin:0}
169 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000}
170 170 a.anchor-link:link{text-decoration:none;padding:0 20px;visibility:hidden}
171 171 h1:hover .anchor-link,h2:hover .anchor-link,h3:hover .anchor-link,h4:hover .anchor-link,h5:hover .anchor-link,h6:hover .anchor-link{visibility:visible}
172 172 div.cell.text_cell.rendered{padding:0}
@@ -1443,7 +1443,7 b' p.p-space{margin-bottom:10px}'
1443 1443 .rendered_html img{display:block;margin-left:auto;margin-right:auto}
1444 1444 .rendered_html *+img{margin-top:1em}
1445 1445 div.text_cell{padding:5px 5px 5px 0;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;display:flex;flex-direction:row;align-items:stretch}
1446 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000}div.text_cell_render .alert.alert-error{margin:0}
1446 div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000}
1447 1447 a.anchor-link:link{text-decoration:none;padding:0 20px;visibility:hidden}
1448 1448 h1:hover .anchor-link,h2:hover .anchor-link,h3:hover .anchor-link,h4:hover .anchor-link,h5:hover .anchor-link,h6:hover .anchor-link{visibility:visible}
1449 1449 div.cell.text_cell.rendered{padding:0}
General Comments 0
You need to be logged in to leave comments. Login now