diff --git a/IPython/frontend/html/notebook/static/js/notebooklist.js b/IPython/frontend/html/notebook/static/js/notebooklist.js index e8bcf6c..a47a2b6 100644 --- a/IPython/frontend/html/notebook/static/js/notebooklist.js +++ b/IPython/frontend/html/notebook/static/js/notebooklist.js @@ -27,8 +27,9 @@ var IPython = (function (IPython) { NotebookList.prototype.bind_events = function () { - if (IPython.read_only) - {return} + if (IPython.read_only){ + return; + } var that = this; this.element.bind('dragover', function () { return false; @@ -85,9 +86,6 @@ 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(); } }; }; diff --git a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js index 880bd01..a62caa3 100644 --- a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js +++ b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js @@ -35,8 +35,10 @@ $(document).ready(function () { if (IPython.read_only){ // unhide login button if it's relevant $('span#login_widget').removeClass('hidden'); + $('#drag_info').remove(); } else { $('#new_notebook').removeClass('hidden'); + $('#drag_info').removeClass('hidden'); } IPython.notebook_list.load_list();