dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15858
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5858: Fixed bug <925314> patient module - can't save design data entry form in first time.
------------------------------------------------------------
revno: 5858
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-02-03 16:32:12 +0700
message:
Fixed bug <925314> patient module - can't save design data entry form in first time.
modified:
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-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 2011-09-30 08:37:26 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm 2012-02-03 09:32:12 +0000
@@ -1,13 +1,17 @@
-<script type="text/javascript">
+<script type="text/javascript">
+
jQuery(document).ready( function()
- {
- validation( 'saveDataEntryForm', function( form ){ form.submit();});
+ {
+ validation( 'saveDataEntryForm', function( form )
+ {
+ setInnerHTML( 'designTextarea' , jQuery("#designTextarea").ckeditorGet().getData() );
+ form.submit();
+ } );
jQuery('#designTextarea').ckeditor();
jQuery("#designTextarea").ckeditorGet().setData('$encoder.jsEscape( $dataEntryValue, "'" )');
- checkValueIsExist( "name", "validateDataEntryForm.action", {dataEntryFormId:'$!programStage.dataEntryForm.id'});
-
+ checkValueIsExist( "name", "validateDataEntryForm.action", { dataEntryFormId: '$!programStage.dataEntryForm.id' } );
});
var i18n_dataelement_is_inserted = '$encoder.jsEscape( $i18n.getString( "dataelement_is_inserted" ) , "'" )';