dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20643
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9550: Fix display option-set field in patient entry from; Remove semicolon in data entry dialog of desi...
------------------------------------------------------------
revno: 9550
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-01-18 08:23:52 +0700
message:
Fix display option-set field in patient entry from; Remove semicolon in data entry dialog of design entry form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm
--
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-12-12 10:41:32 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2013-01-18 01:23:52 +0000
@@ -633,6 +633,7 @@
function autocompletedField( idField )
{
var input = jQuery( "#" + idField );
+ input.parent().width( input.width() + 200 );
var dataElementId = input.attr('id').split('-')[1];
input.autocomplete({
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js 2013-01-17 15:58:12 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js 2013-01-18 01:23:52 +0000
@@ -186,6 +186,7 @@
jQuery('#' + div + ' [id=dataElementIds] option').each(function(){
var item = jQuery(this);
item[0].text = item.attr('dename');
+ item[0].title = item[0].text;
});
jQuery('#' + div + ' [id=dataElementIdsStore] option').each(function(){
var item = jQuery(this);
@@ -197,6 +198,7 @@
jQuery('#' + div + ' [id=dataElementIds] option').each(function(){
var item = jQuery(this);
item[0].text = item.attr('decode');
+ item[0].title = item[0].text;
});
jQuery('#' + div + ' [id=dataElementIdsStore] option').each(function(){
var item = jQuery(this);
@@ -208,6 +210,7 @@
jQuery('#' + div + ' [id=dataElementIds] option').each(function(){
var item = jQuery(this);
item[0].text = "(" + item.attr('decode') + ") " + item.attr('dename');
+ item[0].title = item[0].text;
});
jQuery('#' + div + ' [id=dataElementIdsStore] option').each(function(){
var item = jQuery(this);
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm 2013-01-17 15:58:12 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm 2013-01-18 01:23:52 +0000
@@ -156,13 +156,13 @@
<td colspan='2'>
<select id="dataElementIds" name="dataElementIds" style="min-width:400; width:100%; height:210px;" multiple="multiple" size="10" ondblclick="insertDataElement( '#dataElementSelection', '$programStage.id')">
#foreach( $de in $dataElements)
- #set($deJSON = '{' + '"id"' + ":" + $de.id + "," + '"name"' + ':"' + "$de.name" + '",' + '"shortName"' + ':"' + "$de.shortName" + '",' + '"type"' + ':"' + "$de.getDetailedTextType()" + '"}' );
- <option value='$deJSON' decode="$!de.code" dename="$de.name">$encoder.htmlEncode( $de.name )</option>
+ #set($deJSON = '{' + '"id"' + ":" + $de.id + "," + '"name"' + ':"' + "$de.name" + '",' + '"shortName"' + ':"' + "$de.shortName" + '",' + '"type"' + ':"' + "$de.getDetailedTextType()" + '"}' )
+ <option value='$deJSON' decode="$!de.code" dename="$de.name" title="$de.name">$encoder.htmlEncode( $de.name )</option>
#end
</select>
<select id="dataElementIdsStore" multiple="multiple" style="display:none">
#foreach( $de in $dataElements)
- #set($deJSON = '{' + '"id"' + ":" + $de.id + "," + '"name"' + ':"' + "$de.name" + '",' + '"shortName"' + ':"' + "$de.shortName" + '",' + '"type"' + ':"' + "$de.getDetailedTextType()" + '"}' );
+ #set($deJSON = '{' + '"id"' + ":" + $de.id + "," + '"name"' + ':"' + "$de.name" + '",' + '"shortName"' + ':"' + "$de.shortName" + '",' + '"type"' + ':"' + "$de.getDetailedTextType()" + '"}' )
<option value='$deJSON' decode="$!de.code" dename="$de.name">$encoder.htmlEncode( $de.name )</option>
#end
</select>