mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
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:
parent
b2291b14dc
commit
73ff1c5cde
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user