##// END OF EJS Templates
move drag_info show/hide to page.ready, to avoid flouc
MinRK -
Show More
@@ -27,8 +27,9 b' var IPython = (function (IPython) {'
27
27
28
28
29 NotebookList.prototype.bind_events = function () {
29 NotebookList.prototype.bind_events = function () {
30 if (IPython.read_only)
30 if (IPython.read_only){
31 {return}
31 return;
32 }
32 var that = this;
33 var that = this;
33 this.element.bind('dragover', function () {
34 this.element.bind('dragover', function () {
34 return false;
35 return false;
@@ -85,9 +86,6 b' var IPython = (function (IPython) {'
85 if (!IPython.read_only){
86 if (!IPython.read_only){
86 // hide delete buttons when readonly
87 // hide delete buttons when readonly
87 this.add_delete_button(item);
88 this.add_delete_button(item);
88 $('#drag_info').removeClass('hidden');
89 } else {
90 $('#drag_info').remove();
91 }
89 }
92 };
90 };
93 };
91 };
@@ -35,8 +35,10 b' $(document).ready(function () {'
35 if (IPython.read_only){
35 if (IPython.read_only){
36 // unhide login button if it's relevant
36 // unhide login button if it's relevant
37 $('span#login_widget').removeClass('hidden');
37 $('span#login_widget').removeClass('hidden');
38 $('#drag_info').remove();
38 } else {
39 } else {
39 $('#new_notebook').removeClass('hidden');
40 $('#new_notebook').removeClass('hidden');
41 $('#drag_info').removeClass('hidden');
40 }
42 }
41 IPython.notebook_list.load_list();
43 IPython.notebook_list.load_list();
42
44
General Comments 0
You need to be logged in to leave comments. Login now