dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18042
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7447: Hide option set dropdown fields when to click Tab on data entry form.
------------------------------------------------------------
revno: 7447
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-06-28 14:56:22 +0700
message:
Hide option set dropdown fields when to click Tab on data entry form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.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/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-06-27 07:34:44 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-06-28 07:56:22 +0000
@@ -821,7 +821,7 @@
function autocompletedField( idField )
{
- var input = jQuery( "#" + idField )
+ var input = jQuery( "#" + idField );
var dataElementId = input.attr('id').split('-')[1];
input.autocomplete({
@@ -859,13 +859,14 @@
return false;
}
}
- },
- blur: function( event, ui ){
- input.autocomplete( "close" );
}
})
.addClass( "ui-widget" );
+ input.blur(function(){
+ input.autocomplete( "close" );
+ });
+
var button = $( "<button> </button>" )
.attr( "tabIndex", -1 )
.attr( "title", i18n_show_all_items )