dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22751
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11033: sms minor fix
------------------------------------------------------------
revno: 11033
committer: Long <Long@Long-Laptop>
branch nick: dhis2
timestamp: Tue 2013-05-28 13:16:33 +0700
message:
sms minor fix
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/org/hisp/dhis/mobile/i18n_module.properties
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/javascript/sms.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/receiveSMSPage.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-mobile/src/main/resources/org/hisp/dhis/mobile/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/org/hisp/dhis/mobile/i18n_module.properties 2013-05-24 15:33:56 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/org/hisp/dhis/mobile/i18n_module.properties 2013-05-28 06:16:33 +0000
@@ -107,6 +107,7 @@
processed=Processed
failed=Failed
unhandled=Unhandled
+reimport_confirm=Are you sure you want to re-import
# ------------------------------------------------------------------------------
# SMS COMMAND LOCALIZATION
# ------------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/javascript/sms.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/javascript/sms.js 2013-05-24 09:21:22 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/javascript/sms.js 2013-05-28 06:16:33 +0000
@@ -11,9 +11,9 @@
window.location.href = url;
}
-function reimport( itemId, itemName, success )
+function reimport(confirmation, itemId, itemName, success )
{
- var result = window.confirm( "confirm_delete" + "\n\n" + itemName );
+ var result = window.confirm( confirmation + "\n\n" + itemName );
var action = "reimport.action";
if ( result )
{
@@ -32,10 +32,12 @@
}
showSuccessMessage( json.message );
+ setTimeout("window.location.reload();", 3000);
}
else if ( json.response == "error" )
{
showWarningMessage( json.message );
+ setTimeout("window.location.reload();", 3000);
}
}
);
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/receiveSMSPage.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/receiveSMSPage.vm 2013-05-24 09:21:22 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/receiveSMSPage.vm 2013-05-28 06:16:33 +0000
@@ -198,7 +198,7 @@
<input type="hidden" id="$incomingSms.id" value="$incomingSms.text" onblur="makeVisible( $incomingSms.id, $velocityCount )"/></td>
<td>$incomingSms.originator</td>
<td>$incomingSms.status</td>
- <td style="text-align:center">#if($incomingSms.status == 'FAILED' || $incomingSms.status == 'INCOMING')<a href="javascript:reimport('$incomingSms.id', '$incomingSms.text')"> Re-import </a> #else None #end</td>
+ <td style="text-align:center">#if($incomingSms.status == 'FAILED' || $incomingSms.status == 'INCOMING')<a href="javascript:reimport('$i18n.getString( 'reimport_confirm' )','$incomingSms.id', '$incomingSms.text')"> Re-import </a> #else None #end</td>
<td style="text-align:center"><a href="javascript:removeSingleItem( '$incomingSms.id', '$incomingSms.getText()' )" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"/></td>
</tr>
#end