dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18266
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7637: Data set editor - Fixed bug "When un-select orgunit. Console says "Uncaught ReferenceError: $head...
------------------------------------------------------------
revno: 7637
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-07-19 14:54:31 +0700
message:
Data set editor - Fixed bug "When un-select orgunit. Console says "Uncaught ReferenceError: $headerIds is not defined" and nothing happens"
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/htmlGrid.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-dataset/src/main/webapp/dhis-web-maintenance-dataset/htmlGrid.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/htmlGrid.vm 2011-04-20 08:49:55 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/htmlGrid.vm 2012-07-19 07:54:31 +0000
@@ -1,3 +1,4 @@
+#if ( $!headerIds )
<style type="text/css">
.pivot td
{
@@ -6,13 +7,13 @@
}
</style>
-#set( $headers = $grid.getVisibleHeaders() )
+#set( $headers = $!grid.getVisibleHeaders() )
#set( $i18nAssigned = $i18n.getString( "assigned" ) )
#set( $i18nUnassigned = $i18n.getString( "unassigned" ) )
-<h3>$!encoder.htmlEncode( $grid.title )</h3>
+<h3>$!encoder.htmlEncode( $!grid.title )</h3>
-<h5>$!encoder.htmlEncode( $grid.subtitle )</h5>
+<h5>$!encoder.htmlEncode( $!grid.subtitle )</h5>
<table class="pivot">
<thead>
@@ -52,13 +53,14 @@
<script type="text/javascript">
- if( arrayIds.length < $headerIds.size() )
+ if( arrayIds.length < '$!headerIds.size()' )
{
arrayIds.length = 0;
- #foreach( $id in $headerIds )
+ #foreach( $id in $!headerIds )
arrayIds.push( '$encoder.jsEscape( $id, "'" )' );
#end
}
-</script>
\ No newline at end of file
+</script>
+#end
\ No newline at end of file