EasySci commited on
Commit
c205500
·
1 Parent(s): 8f904d6

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -170,7 +170,7 @@ const scrollInterval = setInterval(function() {
170
  }, 15);
171
  """
172
 
173
- back_to_top_button.js_on_event('click', CustomJS(code=js_code))
174
 
175
  # Add the "Back to Top" button to the sidebar of the template
176
  template.sidebar.append(back_to_top_button)
 
170
  }, 15);
171
  """
172
 
173
+ back_to_top_button.js_on_click(CustomJS(code=js_code))
174
 
175
  # Add the "Back to Top" button to the sidebar of the template
176
  template.sidebar.append(back_to_top_button)