Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

unhide on not read-only instead of inverse

  • Loading branch information...
commit aee2b316949802350aa97ca43d044b866f97d7b5 1 parent 4973176
Matthias Bussonnier authored December 11, 2011
1  IPython/frontend/html/notebook/static/js/notebooklist.js
@@ -85,6 +85,7 @@ var IPython = (function (IPython) {
85 85
             if (!IPython.read_only){
86 86
                 // hide delete buttons when readonly
87 87
                 this.add_delete_button(item);
  88
+                $('#drag_info').removeClass('hidden');
88 89
             } else {
89 90
                 $('#drag_info').remove();
90 91
             }
3  IPython/frontend/html/notebook/static/js/projectdashboardmain.js
@@ -33,9 +33,10 @@ $(document).ready(function () {
33 33
     IPython.login_widget = new IPython.LoginWidget('span#login_widget');
34 34
     
35 35
     if (IPython.read_only){
36  
-        $('#new_notebook').addClass('hidden');
37 36
         // unhide login button if it's relevant
38 37
         $('span#login_widget').removeClass('hidden');
  38
+    } else {
  39
+        $('#new_notebook').removeClass('hidden');
39 40
     }
40 41
     IPython.notebook_list.load_list();
41 42
 
4  IPython/frontend/html/notebook/templates/projectdashboard.html
@@ -20,9 +20,9 @@
20 20
 
21 21
 {% block content_panel %}
22 22
     <div id="content_toolbar">
23  
-        <span id="drag_info">Drag files onto the list to import notebooks.</span>
  23
+        <span id="drag_info" class="hidden">Drag files onto the list to import notebooks.</span>
24 24
         <span id="notebooks_buttons">
25  
-            <button id="new_notebook">New Notebook</button>
  25
+            <button id="new_notebook" class="hidden">New Notebook</button>
26 26
         </span>
27 27
     </div>
28 28
     <div id="notebook_list">

0 notes on commit aee2b31

Please sign in to comment.
Something went wrong with that request. Please try again.