summaryrefslogtreecommitdiffstats
path: root/install/ui/association.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-11-03 23:43:58 -0500
committerPetr Vobornik <pvoborni@redhat.com>2011-11-07 15:07:02 +0100
commit6802ea7d706d00ad0078d31bc650140e82b3d3a8 (patch)
treebb4f445cfeb2ef1fb79bd0bed2324cd23dbce2c9 /install/ui/association.js
parent2eb6414372581655ba04dff7539294c75f84a281 (diff)
downloadfreeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.tar.gz
freeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.tar.xz
freeipa-6802ea7d706d00ad0078d31bc650140e82b3d3a8.zip
Fixed problem changing page in association facet.
The association facet has been modified to detect page change to determine whether the facet needs to be updated. Ticket #1459
Diffstat (limited to 'install/ui/association.js')
-rw-r--r--install/ui/association.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/install/ui/association.js b/install/ui/association.js
index 6ce8fea46..6ef73dafe 100644
--- a/install/ui/association.js
+++ b/install/ui/association.js
@@ -1165,7 +1165,7 @@ IPA.association_facet = function (spec) {
that.table.total_pages = 1;
}
- that.table.current_page = 1;
+ delete that.table.current_page;
that.table.refresh();
that.table.unselect_all();
@@ -1207,8 +1207,14 @@ IPA.association_facet = function (spec) {
that.needs_update = function() {
if (that._needs_update !== undefined) return that._needs_update;
+
var pkey = IPA.nav.get_state(that.entity.name+'-pkey');
- return that.pkey !== pkey;
+ if (that.pkey !== pkey) return true;
+
+ var page = parseInt(IPA.nav.get_state(that.entity_name+'-page'), 10) || 1;
+ if (that.table.current_page !== page) return true;
+
+ return false;
};
/*initialization*/