|
From: <ken...@us...> - 2009-02-17 21:18:17
|
Revision: 1252
http://andro.svn.sourceforge.net/andro/?rev=1252&view=rev
Author: kendowns
Date: 2009-02-17 21:18:15 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
Sourceforge bug 2568464. Sorted search results were coming back wrong size.
Modified Paths:
--------------
trunk/andro/clib/x6.js
Modified: trunk/andro/clib/x6.js
===================================================================
--- trunk/andro/clib/x6.js 2009-02-17 21:08:31 UTC (rev 1251)
+++ trunk/andro/clib/x6.js 2009-02-17 21:18:15 UTC (rev 1252)
@@ -5928,14 +5928,7 @@
$(this).find('.tbody').html('');
return;
}
- //x6.json.addParm('x6action' ,'browseFetch');
- //x6.json.addParm('xSortable' ,'N');
- //x6.json.addParm('xReturnAll' ,'N');
- json.addParm('x6action' ,'browseFetch');
- json.addParm('xSortable' ,x6.p(this,'xSortable' ,'N'));
- json.addParm('xReturnAll' ,'N');
- json.addParm('xGridHeight',x6.p(this,'xGridHeight',500));
- json.addParm('xLookups' ,x6.p(this,'xLookups' ,'N'));
+ this.gridParms(json);
// Add the "exact match" parm if it is part of the
// the grid. Notice it is a one-timer
@@ -5977,12 +5970,8 @@
// Fetch the filters as well
this.addFilters(json);
-
- json.addParm('x6action','browseFetch');
- json.addParm('xGridHeight',x6.p(this,'xGridHeight'));
- json.addParm('xSortable' ,x6.p(this,'xSortable' ));
- json.addParm('xReturnAll' ,x6.p(this,'xReturnAll' ));
- json.addParm('xButtonBar' ,x6.p(this,'xButtonBar','N'));
+ this.gridParms(json);
+
json.addParm('sortCol',args.sortCol);
json.addParm('sortAsc',args.sortAsc);
x6dialogs.pleaseWait();
@@ -6011,6 +6000,14 @@
json.addParm('x6w_'+x6.p(this,'xColumnId'),$(this).prop('value'));
});
}
+ self.gridParms = function(json) {
+ json.addParm('x6action' ,'browseFetch');
+ json.addParm('xSortable' ,x6.p(this,'xSortable' ,'N'));
+ json.addParm('xReturnAll' ,x6.p(this,'xReturnAll' ,'N'));
+ json.addParm('xGridHeight',x6.p(this,'xGridHeight',500));
+ json.addParm('xLookups' ,x6.p(this,'xLookups' ,'N'));
+ json.addParm('xButtonBar' ,x6.p(this,'xButtonBar','N'));
+ }
/* --------------------------------------------------------------- */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|