dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #32431
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16550: Fixed bug - (DE group editor) Issues with View 2 tab.
------------------------------------------------------------
revno: 16550
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-08-28 16:15:48 +0700
message:
Fixed bug - (DE group editor) Issues with View 2 tab.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupEditorView.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupEditorView.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-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupEditorView.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupEditorView.vm 2012-11-21 09:36:35 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupEditorView.vm 2014-08-28 09:15:48 +0000
@@ -113,7 +113,7 @@
<tr>
<td>
- <select class="select" id="availableDataElements2" size="30" onclick="getAssignedDataElementGroups()"/>
+ <select class="select" id="availableDataElements2" size="30" onchange="getAssignedDataElementGroups()"/>
</td>
<td>
<select class="select" id="assignedGroups" multiple="multiple" size="30" ondblclick="moveSelectedById(this.id, 'availableGroups');"/>
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupEditorView.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupEditorView.js 2013-06-25 13:58:55 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupEditorView.js 2014-08-28 09:15:48 +0000
@@ -350,12 +350,13 @@
var id = jQuery( "#view_2 #availableDataElements2" ).val();
var list_2 = jQuery( "#view_2 #assignedGroups" );
- list_2.empty();
-
+
jQuery.postJSON( "getAssignedDataElementGroups.action", {
dataElementId : ( isNotNull( id ) ? id : -1 )
}, function( json )
- {
+ {
+ clearListById('view_2 [id="assignedGroups"]');
+
jQuery.each( json.dataElementGroups, function( i, item )
{
list_2.append( '<option value="' + item.id + '">' + item.name + '</option>' );