fix upload button selection by class

superseed #1676 #1658 (and correct bug in 1676 where one con't upload
notebook because of refresh)
This commit is contained in:
Matthias BUSSONNIER 2012-05-15 21:56:17 +02:00
parent b2291b14dc
commit 73ff1c5cde

View File

@ -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();