← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1343: Function Excel-File Management - Working in process

 

------------------------------------------------------------
revno: 1343
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2010-01-26 15:43:26 +0700
message:
  Function Excel-File Management - Working in process
modified:
  dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/exceltemplate.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-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/exceltemplate.js'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/exceltemplate.js	2010-01-26 08:19:44 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/exceltemplate.js	2010-01-26 08:43:26 +0000
@@ -6,12 +6,12 @@
 *	Delete Excel Template
 */
 function deleteExcelTemplate( fileName ) {
-
-	var request = new Request();
-	request.setResponseTypeXML( 'xmlObject' );
-	request.setCallbackSuccess( deleteExcelTemplateReceived );
-	request.send( "deleteExcelTemplate.action?fileName=" + fileName );
-	
+	if ( window.confirm(i18n_confirm_delete) ) {
+		var request = new Request();
+		request.setResponseTypeXML( 'xmlObject' );
+		request.setCallbackSuccess( deleteExcelTemplateReceived );
+		request.send( "deleteExcelTemplate.action?fileName=" + fileName );
+	}
 }
 
 function deleteExcelTemplateReceived( xmlObject ) {