Skip to content

Commit

Permalink
Ignore WebPageHistory rule config
Browse files Browse the repository at this point in the history
  • Loading branch information
haxdai committed Apr 20, 2017
1 parent ccc4eec commit bb8b767
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/main/webapp/swbadmin/jsp/SWBARules/view.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@
if (a.title.toLowerCase() > b.title.toLowerCase()) return 1;
});
//Ignore SWBWebPageHistory rules
attributes = attributes.filter(function(item) {
return item.name !== "SWBWebPageHistory";
});
return attributes.map(function(item) {
var filterDef = {};
filterDef.id = item.name;
filterDef.label = item.title;
//Process SWBPageHistory different
if (item.name === "SWBWebPageHistory") {
/*if (item.name === "SWBWebPageHistory") {
filterDef.operators = ["equal", "not_equal", "history"];
filterDef.input = function(rule, name) {
Expand All @@ -113,9 +118,9 @@
});
return '<input type="text" name="' + name + '" class="form-control" />';
};
};*/
} else {
//} else {
if (item.operators && item.operators.length) {
filterDef.operators = item.operators.map(function(operator) {
if (operator.value === "=") {
Expand All @@ -142,7 +147,7 @@
});
}
}
}
//}
return filterDef;
});
Expand Down

1 comment on commit bb8b767

@haxdai
Copy link
Member Author

@haxdai haxdai commented on bb8b767 Apr 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you are @jordivs

Please sign in to comment.