summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-02-07 22:47:24 -0500
committerEndi S. Dewata <edewata@redhat.com>2014-02-12 15:57:18 -0500
commit71a03d3b4d9c3627a4cf3d2c0b2ba061d15ecda2 (patch)
treee500618c49174fa14a35d3a340b9e47eee01715a /base
parent310e410dfc1916e19b3aca655bbfedc62db35216 (diff)
downloadpki-71a03d3b4d9c3627a4cf3d2c0b2ba061d15ecda2.tar.gz
pki-71a03d3b4d9c3627a4cf3d2c0b2ba061d15ecda2.tar.xz
pki-71a03d3b4d9c3627a4cf3d2c0b2ba061d15ecda2.zip
Fixed pagination in TPS UI.
The pagination in TPS UI no longer worked due to Jackson change. The Collection class has been fixed to read the correct attribute names for pagination links. The table size has been changed to 5 rows. Ticket #654
Diffstat (limited to 'base')
-rw-r--r--base/server/share/webapps/pki/js/pki-ui.js4
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/activity.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/authenticator.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/cert.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/connection.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/group.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/profile.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/selftest.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/token.js2
-rw-r--r--base/tps-tomcat/shared/webapps/tps/js/user.js2
10 files changed, 11 insertions, 11 deletions
diff --git a/base/server/share/webapps/pki/js/pki-ui.js b/base/server/share/webapps/pki/js/pki-ui.js
index d35de5893..c257d28ca 100644
--- a/base/server/share/webapps/pki/js/pki-ui.js
+++ b/base/server/share/webapps/pki/js/pki-ui.js
@@ -93,8 +93,8 @@ var Collection = Backbone.Collection.extend({
var self = this;
self.links = {};
_(links).each(function(link) {
- var name = link["@rel"];
- var href = link["@href"];
+ var name = link.rel;
+ var href = link.href;
self.links[name] = href;
});
},
diff --git a/base/tps-tomcat/shared/webapps/tps/js/activity.js b/base/tps-tomcat/shared/webapps/tps/js/activity.js
index 4039a72ce..fdde68986 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/activity.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/activity.js
@@ -77,7 +77,7 @@ var ActivityPage = Page.extend({
new Table({
el: $("table[name='activities']"),
- collection: new ActivityCollection({ size: 3 }),
+ collection: new ActivityCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/authenticator.js b/base/tps-tomcat/shared/webapps/tps/js/authenticator.js
index cacf09414..bdbe1f839 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/authenticator.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/authenticator.js
@@ -134,7 +134,7 @@ var AuthenticatorPage = Page.extend({
new Table({
el: $("table[name='authenticators']"),
- collection: new AuthenticatorCollection({ size: 3 }),
+ collection: new AuthenticatorCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/cert.js b/base/tps-tomcat/shared/webapps/tps/js/cert.js
index ede68d865..cd4164dee 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/cert.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/cert.js
@@ -83,7 +83,7 @@ var CertificatePage = Page.extend({
new Table({
el: $("table[name='certificates']"),
- collection: new CertificateCollection({ size: 3 }),
+ collection: new CertificateCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/connection.js b/base/tps-tomcat/shared/webapps/tps/js/connection.js
index 94c4522ce..a796cec7f 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/connection.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/connection.js
@@ -134,7 +134,7 @@ var ConnectionPage = Page.extend({
new Table({
el: $("table[name='connections']"),
- collection: new ConnectionCollection({ size: 3 }),
+ collection: new ConnectionCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/group.js b/base/tps-tomcat/shared/webapps/tps/js/group.js
index 7373e0339..4f03d6932 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/group.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/group.js
@@ -72,7 +72,7 @@ var GroupPage = Page.extend({
new Table({
el: $("table[name='groups']"),
- collection: new GroupCollection({ size: 3 }),
+ collection: new GroupCollection({ size: 5 }),
addDialog: addDialog,
editDialog: editDialog
});
diff --git a/base/tps-tomcat/shared/webapps/tps/js/profile.js b/base/tps-tomcat/shared/webapps/tps/js/profile.js
index f9d0ebc9b..5b8d06e2b 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/profile.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/profile.js
@@ -134,7 +134,7 @@ var ProfilePage = Page.extend({
new Table({
el: $("table[name='profiles']"),
- collection: new ProfileCollection({ size: 3 }),
+ collection: new ProfileCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/selftest.js b/base/tps-tomcat/shared/webapps/tps/js/selftest.js
index 95d0301ec..9104c6c6f 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/selftest.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/selftest.js
@@ -70,7 +70,7 @@ var SelfTestPage = Page.extend({
new Table({
el: $("table[name='selftests']"),
- collection: new SelfTestCollection({ size: 3 }),
+ collection: new SelfTestCollection({ size: 5 }),
editDialog: editDialog
});
}
diff --git a/base/tps-tomcat/shared/webapps/tps/js/token.js b/base/tps-tomcat/shared/webapps/tps/js/token.js
index dcf2cd99c..b9686f10e 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/token.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/token.js
@@ -93,7 +93,7 @@ var TokenPage = Page.extend({
new Table({
el: $("table[name='tokens']"),
- collection: new TokenCollection({ size: 3 }),
+ collection: new TokenCollection({ size: 5 }),
addDialog: addDialog,
editDialog: editDialog
});
diff --git a/base/tps-tomcat/shared/webapps/tps/js/user.js b/base/tps-tomcat/shared/webapps/tps/js/user.js
index e0d4660b5..abcac34dd 100644
--- a/base/tps-tomcat/shared/webapps/tps/js/user.js
+++ b/base/tps-tomcat/shared/webapps/tps/js/user.js
@@ -136,7 +136,7 @@ var UserPage = Page.extend({
new Table({
el: $("table[name='users']"),
- collection: new UserCollection({ size: 3 }),
+ collection: new UserCollection({ size: 5 }),
addDialog: addDialog,
editDialog: editDialog
});