diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl
index 936420179..a2b307efb 100755
--- a/templates/repo/cloudbrain/new.tmpl
+++ b/templates/repo/cloudbrain/new.tmpl
@@ -131,8 +131,12 @@
{{end}}
+
-
@@ -216,6 +220,22 @@
$('select.dropdown')
.dropdown();
+ $(".ui.button.reset").click(function(e){
+ e.preventDefault()
+ $('#cloudbrain_benchmark_category')
+ .dropdown("clear", true)
+ })
+
+ $(".ui.positive.button.active.all_selected").click(function(e){
+ e.preventDefault()
+ var selected_value = new Array()
+ $("#cloudbrain_benchmark_category option").each(function(){
+ selected_value.push($(this).val())
+ });
+ $('#cloudbrain_benchmark_category')
+ .dropdown("set exactly", selected_value)
+ })
+
$(function() {
$("#cloudbrain_job_type").change(function() {
if ($(this).val() == 'BENCHMARK') {