Skip to content

Commit

Permalink
reset form when scoreset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jweile committed May 3, 2018
1 parent 0a0d8dc commit a24a13a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docker/cgi/mavevis.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,20 @@ $(document).ready(function(){
*/
function reset() {

$("#submitButton").prop('disabled', true);
$("#outputpanel").hide();

$("#molecule").val("");
ssid=null;

resetMost();
}

/**
* Resets most of the form back to its initial state, except for the score set
*/
function resetMost() {

$("#submitButton").prop('disabled', true);
$("#outputpanel").hide();

$("#uniprot").val("");
uniprot=null;
$("#uniprotOptions").hide();
Expand Down Expand Up @@ -257,6 +265,8 @@ $(document).ready(function(){
delay: 500,
select: function(event, ui) {

resetMost();

ssid = ui.item.ssid;
//if a uniprot ID is available, automatically fill it in
if (ui.item.uniprot) {
Expand Down

0 comments on commit a24a13a

Please sign in to comment.