=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml 2013-05-22 16:45:15 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml 2013-05-23 13:58:43 +0000 @@ -119,6 +119,7 @@ /main.vm /dhis-web-reporting/viewTableForm.vm /dhis-web-reporting/menu.vm + javascript/table.js === added file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js 2013-05-23 13:58:43 +0000 @@ -0,0 +1,15 @@ + +function removeTable( tableId, tableName ) +{ + removeItem( tableId, tableName, i18n_confirm_delete, "removeTable.action" ); +} + +function addReportTableToDashboard( id ) +{ + var dialog = window.confirm( i18n_confirm_add_report_table_to_dashboard ); + + if ( dialog ) + { + $.get( "addReportTableToDashboard.action?id=" + id ); + } +} \ No newline at end of file