Skip to content

Commit

Permalink
make upload button clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
PatWie committed Jan 11, 2020
1 parent 3af526b commit 2f40a50
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions static/js/main.js
Expand Up @@ -292,23 +292,33 @@ $(function() {
SheetApp.scroll_to_page(SheetApp.current_page_number - 1);
});

$("#help-dialog_btn").click(function(e) {
$("#refresh_btn").click(function(e) {
e.stopPropagation();
Results.load();
});


$("#search_btn").click(function(e) {
if (dialogs.active_dialog() === undefined) {
e.stopPropagation();
dialogs.show(1);
dialogs.show(0);
}
});

$("#search_btn").click(function(e) {
$("#help-dialog_btn").click(function(e) {
if (dialogs.active_dialog() === undefined) {
e.stopPropagation();
dialogs.show(0);
dialogs.show(1);
}
});

$("#refresh_btn").click(function(e) {
e.stopPropagation();
Results.load();
$("#upload-dialog_btn").click(function(e) {
if ($("body").data('upload') == "enabled") {
if (dialogs.active_dialog() === undefined) {
e.stopPropagation();
dialogs.show(2);
}
}
});

var Results = {
Expand Down

0 comments on commit 2f40a50

Please sign in to comment.