dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19356
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8406: Don't search events with selected data elements in anonymous program.
------------------------------------------------------------
revno: 8406
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-10-06 21:23:39 +0700
message:
Don't search events with selected data elements in anonymous program.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.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/javascript/anonymousRegistration.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-10-06 14:03:27 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-10-06 14:23:39 +0000
@@ -168,7 +168,7 @@
var flag = true;
if( !listAll )
{
- jQuery( '#advancedSearchTB tbody tr' ).each( function( i, row ){
+ jQuery( '#advancedSearchTB tr' ).each( function( i, row ){
jQuery( this ).find(':input').each( function( idx, item ){
var input = jQuery( item );
if( input.attr('type') != 'button' && idx==0 && input.val()=='' ){
@@ -204,7 +204,7 @@
params += '&endDate=' + getFieldValue('endDate');
var value = '';
var searchingValue = '';
- jQuery( '#advancedSearchTB tbody tr' ).each( function(){
+ jQuery( '#advancedSearchTB tr' ).each( function(){
jQuery( this ).find(':input').each( function( idx, item ){
var input = jQuery( item );
if( input.attr('type') != 'button' ){
@@ -212,7 +212,7 @@
searchingValue = 'de_' + input.val() + '_false_';
}
else if( input.val()!='' ){
- value += input.val().toLowerCase();
+ value += jQuery.trim(input.val()).toLowerCase();
}
}
});