##// 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 KernelList.prototype.sessions_loaded = function (d) {
23 KernelList.prototype.sessions_loaded = function (d) {
24 this.sessions = d;
24 this.sessions = d;
25 // clear out the previous list
26 this.clear_list();
25 this.clear_list();
27 var item;
26 var item;
28 for (var path in d) {
27 for (var path in d) {
29 item = this.new_notebook_item(-1);
28 item = this.new_notebook_item(-1);
30 this.add_link('', path, item);
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 $('#running_list_header').toggle($.isEmptyObject(d));
33 $('#running_list_header').toggle($.isEmptyObject(d));
@@ -33,10 +33,11 b' var IPython = (function (IPython) {'
33 };
33 };
34
34
35 NotebookList.prototype.style = function () {
35 NotebookList.prototype.style = function () {
36 $('#' + this.element_name + '_toolbar').addClass('list_toolbar');
36 var prefix = '#' + this.element_name
37 $('#drag_info').addClass('toolbar_info');
37 $(prefix + '_toolbar').addClass('list_toolbar');
38 $('#' + this.element_name + '_buttons').addClass('toolbar_buttons');
38 $(prefix + '_list_info').addClass('toolbar_info');
39 $('#' + this.element_name + '_list_header').addClass('list_header');
39 $(prefix + '_buttons').addClass('toolbar_buttons');
40 $(prefix + '_list_header').addClass('list_header');
40 this.element.addClass("list_container");
41 this.element.addClass("list_container");
41 };
42 };
42
43
@@ -29,7 +29,7 b' var IPython = (function (IPython) {'
29 success : $.proxy(that.sessions_loaded, this)
29 success : $.proxy(that.sessions_loaded, this)
30 };
30 };
31 var url = utils.url_join_encode(this.base_url, 'api/sessions');
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 SesssionList.prototype.sessions_loaded = function(data){
35 SesssionList.prototype.sessions_loaded = function(data){
@@ -34,9 +34,9 b' data-base-kernel-url="{{base_kernel_url}}"'
34 <div id="notebook_toolbar" class="row-fluid">
34 <div id="notebook_toolbar" class="row-fluid">
35 <div class="span8">
35 <div class="span8">
36 <form id='alternate_upload' class='alternate_upload' >
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 To import a notebook, drag the file onto the listing below or <strong>click here</strong>.
38 To import a notebook, drag the file onto the listing below or <strong>click here</strong>.
39 </span>
39 </span>
40 <input type="file" name="datafile" class="fileinput" multiple='multiple'>
40 <input type="file" name="datafile" class="fileinput" multiple='multiple'>
41 </form>
41 </form>
42 </div>
42 </div>
@@ -76,9 +76,8 b' data-base-kernel-url="{{base_kernel_url}}"'
76 </div>
76 </div>
77
77
78 <div id="running_list">
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 <div> There are no notebooks running. </div>
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 </div>
81 </div>
83 </div>
82 </div>
84 </div>
83 </div>
General Comments 0
You need to be logged in to leave comments. Login now