From 79ce958a3c9e182a4b4ee0850d7315fdd51982d7 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 16 Jun 2011 11:00:01 -0500 Subject: Storing page number in URL. The association facet has been modified to store the current page number in the browser's URL. This way page changes are stored in browser's history allowing the back button to work properly. Ticket #1264 --- install/ui/entity.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index 8ccdb8ea..c6d46ab7 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -188,7 +188,13 @@ IPA.table_facet = function(spec) { }; that.create_column = function(spec) { - var column = IPA.column(spec); + var column; + if (spec instanceof Object) { + var factory = spec.factory || IPA.column; + column = factory(spec); + } else { + column = IPA.column({ name: spec }); + } that.add_column(column); return column; }; @@ -200,16 +206,7 @@ IPA.table_facet = function(spec) { var columns = spec.columns || []; for (var i=0; i