Permalink
Browse files

unhide on not read-only instead of inverse

  • Loading branch information...
1 parent 4973176 commit aee2b316949802350aa97ca43d044b866f97d7b5 @Carreau committed Dec 11, 2011
@@ -85,6 +85,7 @@ var IPython = (function (IPython) {
if (!IPython.read_only){
// hide delete buttons when readonly
this.add_delete_button(item);
+ $('#drag_info').removeClass('hidden');
} else {
$('#drag_info').remove();
}
@@ -33,9 +33,10 @@ $(document).ready(function () {
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
if (IPython.read_only){
- $('#new_notebook').addClass('hidden');
// unhide login button if it's relevant
$('span#login_widget').removeClass('hidden');
+ } else {
+ $('#new_notebook').removeClass('hidden');
}
IPython.notebook_list.load_list();
@@ -20,9 +20,9 @@
{% block content_panel %}
<div id="content_toolbar">
- <span id="drag_info">Drag files onto the list to import notebooks.</span>
+ <span id="drag_info" class="hidden">Drag files onto the list to import notebooks.</span>
<span id="notebooks_buttons">
- <button id="new_notebook">New Notebook</button>
+ <button id="new_notebook" class="hidden">New Notebook</button>
</span>
</div>
<div id="notebook_list">

0 comments on commit aee2b31

Please sign in to comment.