Skip to content

Commit

Permalink
reset dropdown when nothing is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya-Oladazimi committed Nov 24, 2021
1 parent 68b397c commit 97bd605
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/semantic_media_wiki/public/statics/machines.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ $(document).ready(function(){
else{
$('#machine_resource_count-' + id).text(0);
$('#machine_resource_count-message-box_' + id).hide();
$("#machines_dropdown_" + id).select2("val", "0"); // none selected
}
});

Expand Down

0 comments on commit 97bd605

Please sign in to comment.