dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25872
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12845: improve logic for select all in detailed meta-data export
------------------------------------------------------------
revno: 12845
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-10-31 12:13:03 +0100
message:
improve logic for select all in detailed meta-data export
modified:
dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/filteredMetaDataExport.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-importexport/src/main/webapp/dhis-web-importexport/javascript/filteredMetaDataExport.js'
--- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/filteredMetaDataExport.js 2013-10-31 09:19:04 +0000
+++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/filteredMetaDataExport.js 2013-10-31 11:13:03 +0000
@@ -48,7 +48,7 @@
var metaDataCategoryName = $(this).attr("name");
if( $(this).is(":checked") ) {
- $(this).attr('checked', true);
+ // $(this).attr('checked', true);
$( "#heading" + metaDataCategoryName ).css( "background", "#CFFFB3 50% 50% repeat-x" );
// selectAllValuesByCategory(metaDataCategoryName);
} else {
@@ -145,11 +145,6 @@
{
$( "#heading" + metaDataCategoryName ).css( "background", "#CFFFB3 50% 50% repeat-x" );
}
-
- if ( $( "#available" + metaDataCategoryName + " option" ).length == 0 )
- {
- $( "#checkboxSelectAll" + metaDataCategoryName ).attr( "checked", true );
- }
}
// Remove all selected items
@@ -160,18 +155,12 @@
{
$( "#heading" + metaDataCategoryName ).css( "background", "" );
}
-
- if ( $( "#available" + metaDataCategoryName + " option" ).length > 0 )
- {
- $( "#checkboxSelectAll" + metaDataCategoryName ).attr( "checked", false );
- }
}
// Move all items
function moveAll( metaDataCategoryName )
{
dhisAjaxSelect_moveAll( "available" + metaDataCategoryName );
- $( "#checkboxSelectAll" + metaDataCategoryName ).attr( "checked", true );
$( "#heading" + metaDataCategoryName ).css( "background", "#CFFFB3 50% 50% repeat-x" );
}
@@ -179,7 +168,6 @@
function removeAll( metaDataCategoryName )
{
dhisAjaxSelect_moveAll( "selected" + metaDataCategoryName );
- $( "#checkboxSelectAll" + metaDataCategoryName ).attr( "checked", false );
$( "#heading" + metaDataCategoryName ).css( "background", "" );
}