Skip to content

Commit

Permalink
Set all resource types button now also deselects, fix #3032
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartisan committed Jan 24, 2017
1 parent 1de7cd6 commit 8fa3813
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/sufia/uploads/_js_templates.html.erb
Expand Up @@ -43,9 +43,8 @@
}
$(".resource_type_dropdown").each(function(index, element) {
for(var i=0; i< this.length; i++) {
if ($.inArray(this.options[i].value, selected_options) > -1) {
this.options[i].selected = true;
}
this.options[i].selected =
$.inArray(this.options[i].value, selected_options) > -1 ? true : false;
}
});
}
Expand Down

0 comments on commit 8fa3813

Please sign in to comment.