##// END OF EJS Templates
File list refreshes no longer move the upload filename boxes....
Jeffrey Bush -
Show More
@@ -57,18 +57,12 b' require(['
57
57
58 var enable_autorefresh = function(){
58 var enable_autorefresh = function(){
59 //refresh immediately , then start interval
59 //refresh immediately , then start interval
60 if($('.upload_button').length === 0)
60 session_list.load_sessions();
61 {
61 cluster_list.load_list();
62 session_list.load_sessions();
63 cluster_list.load_list();
64 }
65 if (!interval_id){
62 if (!interval_id){
66 interval_id = setInterval(function(){
63 interval_id = setInterval(function(){
67 if($('.upload_button').length === 0)
64 session_list.load_sessions();
68 {
65 cluster_list.load_list();
69 session_list.load_sessions();
70 cluster_list.load_list();
71 }
72 }, time_refresh*1000);
66 }, time_refresh*1000);
73 }
67 }
74 };
68 };
@@ -172,6 +172,7 b' define(['
172 var list = data.content;
172 var list = data.content;
173 var len = list.length;
173 var len = list.length;
174 this.clear_list();
174 this.clear_list();
175 var n_uploads = this.element.children('.list_item').length;
175 if (len === 0) {
176 if (len === 0) {
176 item = this.new_item(0);
177 item = this.new_item(0);
177 var span12 = item.children().first();
178 var span12 = item.children().first();
@@ -179,16 +180,16 b' define(['
179 span12.append($('<div style="margin:auto;text-align:center;color:grey"/>').text(message));
180 span12.append($('<div style="margin:auto;text-align:center;color:grey"/>').text(message));
180 }
181 }
181 var path = this.notebook_path;
182 var path = this.notebook_path;
182 var offset = 0;
183 var offset = n_uploads;
183 if (path !== '') {
184 if (path !== '') {
184 item = this.new_item(0);
185 item = this.new_item(offset);
185 model = {
186 model = {
186 type: 'directory',
187 type: 'directory',
187 name: '..',
188 name: '..',
188 path: path,
189 path: path,
189 };
190 };
190 this.add_link(model, item);
191 this.add_link(model, item);
191 offset = 1;
192 offset += 1;
192 }
193 }
193 for (var i=0; i<len; i++) {
194 for (var i=0; i<len; i++) {
194 model = list[i];
195 model = list[i];
General Comments 0
You need to be logged in to leave comments. Login now