Skip to content

Commit

Permalink
#91 support exact search groupName
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjuanying committed Feb 23, 2017
1 parent 014cd1f commit 849891a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion saturn-console/src/main/resources/static/js/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ $(function() {
$(document).on("change", "#groupSelect", function(event) {
var term = $(this).val();
regex = term ;
jobsViewDataTable.columns(11).search(regex, true, false).draw();
if (regex == "") {
jobsViewDataTable.columns(11).search(regex, true, false).draw();
} else {
jobsViewDataTable.columns(11).search("^" + regex + "$", true, false).draw();
}
});

$(document).on("click", "#add-job", function(event) {
Expand Down

0 comments on commit 849891a

Please sign in to comment.