Commit 49359325 by Kálmán Viktor

dashboard: change span to label

parent 5035a28d
...@@ -946,3 +946,7 @@ textarea[name="list-new-namelist"] { ...@@ -946,3 +946,7 @@ textarea[name="list-new-namelist"] {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
#vm-list-search-checkbox-span {
cursor: pointer
}
...@@ -167,14 +167,6 @@ $(function() { ...@@ -167,14 +167,6 @@ $(function() {
updateStatuses(1); updateStatuses(1);
} }
$("#vm-list-search-checkbox-span").css("cursor", "pointer");
$("#vm-list-search-checkbox-span").click(function(e) {
if(e.target.type === "checkbox") return;
var checkbox = $(this).find("input");
checkbox.prop("checked", !checkbox.prop("checked"));
return false;
});
}); });
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
<div class="input-group-btn"> <div class="input-group-btn">
{{ search_form.stype }} {{ search_form.stype }}
</div> </div>
<span class="input-group-addon input-tags" title="{% trans "Include deleted VMs" %}" <label class="input-group-addon input-tags" title="{% trans "Include deleted VMs" %}"
id="vm-list-search-checkbox-span" data-container="body"> id="vm-list-search-checkbox-span" data-container="body">
{{ search_form.include_deleted }} {{ search_form.include_deleted }}
</span> </label>
<div class="input-group-btn"> <div class="input-group-btn">
<button type="submit" class="btn btn-primary input-tags"> <button type="submit" class="btn btn-primary input-tags">
<i class="fa fa-search"></i> <i class="fa fa-search"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment