Commit 177010dd authored by Franco Fichtner's avatar Franco Fichtner

intrusion detection: tweak previous

parent bbe9e070
......@@ -222,13 +222,13 @@ POSSIBILITY OF SUCH DAMAGE.
navigation:0,
formatters:{
editor: function (column, row) {
return "<button type=\"button\" class=\"btn btn-xs btn-default command-edit\" data-row-id=\"" + row.filename + "\"><span class=\"fa fa-pencil\"></span></button> ";
return "<button type=\"button\" class=\"btn btn-xs btn-default command-edit\" data-row-id=\"" + row.filename + "\"><span class=\"fa fa-pencil\"></span></button>";
},
boolean: function (column, row) {
if (parseInt(row[column.id], 2) == 1) {
return "<span class=\"fa fa-check\"></span>";
return "<span class=\"fa fa-check command-boolean\" data-value=\"1\" data-row-id=\"" + row.filename + "\"></span>";
} else {
return "<span class=\"fa fa-times\"></span>";
return "<span class=\"fa fa-times command-boolean\" data-value=\"0\" data-row-id=\"" + row.filename + "\"></span>";
}
}
},
......
......@@ -56,9 +56,9 @@ function stdBootgridUI(obj, sourceUrl, options) {
},
"boolean": function (column, row) {
if (parseInt(row[column.id], 2) == 1) {
return "<span class=\"fa fa-check\"></span>";
return "<span class=\"fa fa-check\" data-value=\"1\" data-row-id=\"" + row.uuid + "\"></span>";
} else {
return "<span class=\"fa fa-times\"></span>";
return "<span class=\"fa fa-times\" data-value=\"0\" data-row-id=\"" + row.uuid + "\"></span>";
}
},
}
......@@ -80,6 +80,9 @@ function stdBootgridUI(obj, sourceUrl, options) {
if ($(this).find('[class*="command-toggle"]').first().data("value") == "0") {
$(this).addClass("text-muted");
}
if ($(this).find('[class*="command-boolean"]').first().data("value") == "0") {
$(this).addClass("text-muted");
}
});
})
......
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 to comment