File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $(function() {
22
22
dialogClass : "dlg-no-close" ,
23
23
buttons : {
24
24
"Confirm" : function ( ) {
25
- addSOS ( ) ;
25
+ sendSMS ( ) ;
26
26
getLocation ( ) ;
27
27
$ ( this ) . dialog ( "close" ) ;
28
28
} ,
@@ -126,7 +126,7 @@ function getLocation() {
126
126
console . log ( "Geo NOT supported" ) ;
127
127
$ ( '#dialogNoGeo' ) . dialog ( 'open' ) ;
128
128
// alert("Geolocation not supported.");
129
- sendSMS ( ) ;
129
+ // sendSMS();
130
130
}
131
131
}
132
132
@@ -170,8 +170,8 @@ function addSOS() {
170
170
var lastname = sessionStorage . getItem ( "lastname" ) ;
171
171
var lat = sessionStorage . getItem ( "lat" ) ;
172
172
var lon = sessionStorage . getItem ( "lon" ) ;
173
- console . log ( "AboutToSendSMS" ) ;
174
- sendSMS ( ) ;
173
+ // console.log("AboutToSendSMS");
174
+ // sendSMS();
175
175
176
176
var ref = new Firebase ( "https://crackling-fire-1447.firebaseio.com/" ) ;
177
177
var sosRef = ref . child ( "sos" ) ;
@@ -194,7 +194,7 @@ function SOS_saved(error) {
194
194
195
195
function sendSMS ( ) {
196
196
console . log ( "StartingSMSSend" ) ;
197
- var message = "SOS Test" ;
197
+ var message = "SOS raised by " + uName ;
198
198
var number = "07947476240" ;
199
199
// var success = function () { alert('Message sent successfully'); };
200
200
var error = function ( e ) {
You can’t perform that action at this time.
0 commit comments