##// END OF EJS Templates
small whitespace cleanup, renamed drag_info...
Paul Ivanov -
Show More
@@ -22,13 +22,12 b' var IPython = (function (IPython) {'
22 22
23 23 KernelList.prototype.sessions_loaded = function (d) {
24 24 this.sessions = d;
25 // clear out the previous list
26 25 this.clear_list();
27 26 var item;
28 27 for (var path in d) {
29 28 item = this.new_notebook_item(-1);
30 29 this.add_link('', path, item);
31 this.add_shutdown_button(item,this.sessions[path]);
30 this.add_shutdown_button(item, this.sessions[path]);
32 31 }
33 32
34 33 $('#running_list_header').toggle($.isEmptyObject(d));
@@ -33,10 +33,11 b' var IPython = (function (IPython) {'
33 33 };
34 34
35 35 NotebookList.prototype.style = function () {
36 $('#' + this.element_name + '_toolbar').addClass('list_toolbar');
37 $('#drag_info').addClass('toolbar_info');
38 $('#' + this.element_name + '_buttons').addClass('toolbar_buttons');
39 $('#' + this.element_name + '_list_header').addClass('list_header');
36 var prefix = '#' + this.element_name
37 $(prefix + '_toolbar').addClass('list_toolbar');
38 $(prefix + '_list_info').addClass('toolbar_info');
39 $(prefix + '_buttons').addClass('toolbar_buttons');
40 $(prefix + '_list_header').addClass('list_header');
40 41 this.element.addClass("list_container");
41 42 };
42 43
@@ -29,7 +29,7 b' var IPython = (function (IPython) {'
29 29 success : $.proxy(that.sessions_loaded, this)
30 30 };
31 31 var url = utils.url_join_encode(this.base_url, 'api/sessions');
32 $.ajax(url,settings);
32 $.ajax(url, settings);
33 33 };
34 34
35 35 SesssionList.prototype.sessions_loaded = function(data){
@@ -34,9 +34,9 b' data-base-kernel-url="{{base_kernel_url}}"'
34 34 <div id="notebook_toolbar" class="row-fluid">
35 35 <div class="span8">
36 36 <form id='alternate_upload' class='alternate_upload' >
37 <span id="drag_info" style="position:absolute" >
37 <span id="notebook_list_info" style="position:absolute" >
38 38 To import a notebook, drag the file onto the listing below or <strong>click here</strong>.
39 </span>
39 </span>
40 40 <input type="file" name="datafile" class="fileinput" multiple='multiple'>
41 41 </form>
42 42 </div>
@@ -76,9 +76,8 b' data-base-kernel-url="{{base_kernel_url}}"'
76 76 </div>
77 77
78 78 <div id="running_list">
79 <div id="running_list_header" class="row-fluid list_header" style='display:none'>
79 <div id="running_list_header" class="row-fluid list_header">
80 80 <div> There are no notebooks running. </div>
81 <!-- damn it, I seem to need this stupid placeholder, otherwise items don't get added to the list -->
82 81 </div>
83 82 </div>
84 83 </div>
General Comments 0
You need to be logged in to leave comments. Login now