diff --git a/IPython/frontend/html/notebook/static/js/notebooklist.js b/IPython/frontend/html/notebook/static/js/notebooklist.js
index 8e861b3..9c8e475 100644
--- a/IPython/frontend/html/notebook/static/js/notebooklist.js
+++ b/IPython/frontend/html/notebook/static/js/notebooklist.js
@@ -260,6 +260,7 @@ var IPython = (function (IPython) {
var that = this;
var new_buttons = $('').addClass('item_buttons');
var upload_button = $('').button().
+ addClass('upload-button').
click(function (e) {
var nbname = item.find('.item_name > input').attr('value');
var nbformat = item.data('nbformat');
diff --git a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js
index dbf9917..50c4f9d 100644
--- a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js
+++ b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js
@@ -37,12 +37,18 @@ $(document).ready(function () {
var enable_autorefresh = function(){
//refresh immediately , then start interval
- IPython.notebook_list.load_list();
- IPython.cluster_list.load_list();
+ if($('upload_button').length == 0)
+ {
+ IPython.notebook_list.load_list();
+ IPython.cluster_list.load_list();
+ }
if (!interval_id){
interval_id = setInterval(function(){
- IPython.notebook_list.load_list();
- IPython.cluster_list.load_list();
+ if($('upload_button').length == 0)
+ {
+ IPython.notebook_list.load_list();
+ IPython.cluster_list.load_list();
+ }
}, time_refresh*1000);
}
}
@@ -65,6 +71,9 @@ $(document).ready(function () {
// finally start it, it will refresh immediately
enable_autorefresh();
+ IPython.enable_autorefresh = enable_autorefresh;
+ IPython.disable_autorefresh = disable_autorefresh;
+
IPython.page.show();
// bound the upload method to the on change of the file select list