${text}<\/div>";
+
+ $.tmpl( template, { "userId": currentUser.id, "userName": currentUser.name, created: created, text: text } ).appendTo( "#comments" + uid );
+
+ $( "#commentArea" + uid ).val( "" );
+ }
+ } );
+ }
}
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css 2012-05-29 19:30:37 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/style/dashboard.css 2012-05-31 21:51:26 +0000
@@ -166,20 +166,19 @@
.interpretationText
{
- margin-bottom: 18px;
+ margin-bottom: 16px;
}
.interpretationChart
{
- margin-bottom: 12px;
+ margin-bottom: 16px;
}
.interpretationCommentArea
{
margin-top: 10px;
padding: 18px 20px 14px 20px;
- background-color: #f2f3f4;
- border: 1px solid #d5d5d5;
+ background-color: #eef1f3;
border-radius: 3px;
}
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/tablecreator/action/ExportTableAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/tablecreator/action/ExportTableAction.java 2012-05-31 20:29:41 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/tablecreator/action/ExportTableAction.java 2012-05-31 21:51:26 +0000
@@ -81,7 +81,23 @@
{
this.format = format;
}
-
+
+ // -------------------------------------------------------------------------
+ // Input
+ // -------------------------------------------------------------------------
+
+ private String uid;
+
+ public String getUid()
+ {
+ return uid;
+ }
+
+ public void setUid( String uid )
+ {
+ this.uid = uid;
+ }
+
private String pe;
public void setPe( String pe )
@@ -91,27 +107,16 @@
private String ou;
+ public String getOu()
+ {
+ return ou;
+ }
+
public void setOu( String ou )
{
this.ou = ou;
}
-
- // -------------------------------------------------------------------------
- // Input
- // -------------------------------------------------------------------------
-
- private String uid;
-
- public String getUid()
- {
- return uid;
- }
-
- public void setUid( String uid )
- {
- this.uid = uid;
- }
-
+
private String type;
public void setType( String type )
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js 2012-05-31 20:29:41 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js 2012-05-31 21:51:26 +0000
@@ -84,14 +84,18 @@
} );
}
-function shareInterpretation( uid )
+function shareInterpretation( uid, ou )
{
var text = $( "#interpretationArea" ).val();
- if ( text.length )
+ if ( text.length && $.trim( text ).length )
{
+ text = $.trim( text );
+
var url = "../api/interpretations/reportTable/" + uid;
+ url += ( ou && ou.length ) ? "?ou=" + ou : "";
+
$.ajax( url, {
type: "POST",
contentType: "text/html",
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/reportTableGrid.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/reportTableGrid.vm 2012-05-31 20:29:41 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/reportTableGrid.vm 2012-05-31 21:51:26 +0000
@@ -22,5 +22,5 @@
-
+
\ No newline at end of file