You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2014/10/17 09:15:47 UTC
git commit: ARGUS-118:Audit-Agents Tab default sort should be in
reverse chronological order
Repository: incubator-argus
Updated Branches:
refs/heads/master d789b9c08 -> 920814bae
ARGUS-118:Audit-Agents Tab default sort should be in reverse chronological order
Signed-off-by: sneethiraj <sn...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/920814ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/920814ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/920814ba
Branch: refs/heads/master
Commit: 920814bae98a1ea769eb61cfc01513f4ac635ac4
Parents: d789b9c
Author: vperiasamy <vp...@hortonworks.com>
Authored: Fri Oct 17 02:49:31 2014 -0400
Committer: sneethiraj <sn...@apache.org>
Committed: Fri Oct 17 03:15:28 2014 -0400
----------------------------------------------------------------------
.../src/main/webapp/scripts/views/reports/AuditLayout.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/920814ba/security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js b/security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js
index 7750a86..cf4be4c 100644
--- a/security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js
+++ b/security-admin/src/main/webapp/scripts/views/reports/AuditLayout.js
@@ -244,6 +244,7 @@ define(function(require) {
this.policyExportAuditList = new VXPolicyExportAuditList();
var params = { priAcctId : 1 };
that.renderAgentTable();
+ this.policyExportAuditList.setSorting('createDate',1);
this.policyExportAuditList.fetch({
cache : false,
data :params
@@ -658,6 +659,8 @@ define(function(require) {
drag : false,
//sortable:false,
editable:false,
+ sortType: 'toggle',
+ direction: 'descending',
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
fromRaw: function (rawValue, model) {
return Globalize.format(new Date(model.get('createDate')), "MM/dd/yyyy hh:mm:ss tt");
@@ -726,6 +729,8 @@ define(function(require) {
click : false,
drag : false,
editable:false,
+ sortType: 'toggle',
+ direction: 'descending',
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
fromRaw: function (rawValue, model) {
return Globalize.format(new Date(rawValue), "MM/dd/yyyy hh:mm:ss tt");
@@ -1152,7 +1157,9 @@ define(function(require) {
}
}),
label : localization.tt('lbl.createDate')+ ' ( '+this.timezone+' )',
- editable : false
+ editable:false,
+ sortType: 'toggle',
+ direction: 'descending'
},
repositoryName : {
cell : 'html',