From df90df6408be83d89b5f353cfc0f41544ff613b3 2012-05-15 19:57:05 From: Matthias BUSSONNIER Date: 2012-05-15 19:57:05 Subject: [PATCH] fix upload button selection by class superseed #1676 #1658 (and correct bug in 1676 where one con't upload notebook because of refresh) --- diff --git a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js index da2bf6f..b593302 100644 --- a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js +++ b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js @@ -37,14 +37,14 @@ $(document).ready(function () { var enable_autorefresh = function(){ //refresh immediately , then start interval - if($('upload_button').length == 0) + if($('.upload_button').length == 0) { IPython.notebook_list.load_list(); IPython.cluster_list.load_list(); } if (!interval_id){ interval_id = setInterval(function(){ - if($('upload_button').length == 0) + if($('.upload_button').length == 0) { IPython.notebook_list.load_list(); IPython.cluster_list.load_list();