dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19323
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8375: Error when to click on Send SMS to list button in program tracking.
------------------------------------------------------------
revno: 8375
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-10-04 22:38:22 +0700
message:
Error when to click on Send SMS to list button in program tracking.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingSelect.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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-10-04 15:05:38 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2012-10-04 15:38:22 +0000
@@ -147,6 +147,19 @@
// Send SMS
// --------------------------------------------------------------------
+function showSendSmsForm()
+{
+ jQuery('#sendSmsToListForm').dialog({
+ title: i18n_send_message,
+ maximize: true,
+ closable: true,
+ modal:true,
+ overlay:{background:'#000000', opacity:0.1},
+ width: 350,
+ height: 200
+ });
+}
+
function sendSMS()
{
var sendToList = getFieldValue('sendToList');
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingSelect.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingSelect.vm 2012-09-28 09:03:34 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingSelect.vm 2012-10-04 15:38:22 +0000
@@ -52,6 +52,19 @@
</script>
</div>
+<div id='sendSmsToListForm' class='hidden'>
+ <table>
+ <tr>
+ <td class='bold'>$i18n.getString('message')</td>
+ <td><textarea id='messageList' name='messageList' style='height:80px;'></textarea></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type='button' value='$i18n.getString("send_sms")' onclick='sendSmsToList();'></td>
+ </tr>
+ </table>
+</div>
+
<script>
unSave = false;
var i18n_sms_message_management = '$encoder.jsEscape( $i18n.getString( "sms_message_management" ) , "'")';
@@ -137,6 +150,7 @@
var i18n_create_new_event = '$encoder.jsEscape( $i18n.getString( "create_new_event" ) , "'")';
var i18n_overdue = '$encoder.jsEscape( $i18n.getString( "overdue" ) , "'")';
var i18n_scheduled_in_futurei18n_scheduled_in_future = '$encoder.jsEscape( $i18n.getString( "scheduled_in_future" ) , "'")';
+ var i18n_send_message = '$encoder.jsEscape( $i18n.getString( "send_message" ) , "'")';
var checkedDuplicate = false;