dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25383
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12583: Fixed bug - Typing a page-number in text field of Case-based tabular report not run.
------------------------------------------------------------
revno: 12583
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-10-11 16:33:54 +0700
message:
Fixed bug - Typing a page-number in text field of Case-based tabular report not run.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2013-10-11 09:24:58 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js 2013-10-11 09:33:54 +0000
@@ -2454,6 +2454,9 @@
listeners: {
added: function() {
TR.cmp.settings.currentPage = this;
+ },
+ change: function(textfield,newValue,oldValue){
+ TR.exe.paging( eval(newValue));
}
},
},
@@ -2519,20 +2522,7 @@
for( var i =0; i <TR.value.columns.length; i++ )
{
// Sortable columns
- if( TR.value.columns[i].name=='ouname')
- {
- cols[i] = {
- header: TR.value.columns[i].column,
- dataIndex: TR.value.columns[i].name,
- height: TR.conf.layout.east_gridcolumn_height,
- name: TR.value.columns[i].column,
- sortable: false,
- draggable: false,
- hideable: false,
- menuDisabled: true
- }
- }
- else if( i==2 || i== 3 || i>= 6 ){
+ if( i==2 || i== 3 || i>= 6 ){
cols[i] = {
header: TR.value.columns[i].column,
dataIndex: TR.value.columns[i].name,