|
|
@@ -131,8 +131,12 @@ |
|
|
|
<option value="{{.Value}}">{{.Value}}</option> |
|
|
|
{{end}} |
|
|
|
</select> |
|
|
|
<div class="mini ui buttons" style="vertical-align: top; margin-top:9px"> |
|
|
|
<button class="ui button reset">重置</button> |
|
|
|
<div class="or"></div> |
|
|
|
<button class="ui positive button active all_selected">全选</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<input id="store_category" type="hidden" name="get_benchmark_category"> |
|
|
|
|
|
|
|
<div class="inline required field"> |
|
|
@@ -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') { |
|
|
|