Updates message Location if symbol is changed and there is a GPS message
Updates message Location if symbol is changed and there is a GPS message
loaded

--- a/src/www/js/main/UI.js
+++ b/src/www/js/main/UI.js
@@ -200,7 +200,7 @@
 			remote.init(remote_button);
 
 			// Set-Up Messaging
-			messaging.init(source_input, ssid_input, dest_input, message_input, APRSPacket.code_from_sym(current_symbol.slice(0, current_symbol.length - 4)));
+			messaging.init(source_input, ssid_input, dest_input, dest_ssid_input, message_input, APRSPacket.code_from_sym(current_symbol.slice(0, current_symbol.length - 4)));
 
 			if(localStorage['source_address'])
 				source_input.input.value = localStorage['source_address'];
@@ -286,6 +286,9 @@
 
 			var load_list = [],
 				ret_func = function(){
+
+					if(messaging.message.get_value().charAt(0) == '@')
+						messaging.location();
 
 					messaging.symbol = APRSPacket.code_from_sym(this.image.name.slice(0, this.image.name.length - 4));
 					symbol_button.set_image(this.image);

--- a/src/www/js/main/messaging.js
+++ b/src/www/js/main/messaging.js
@@ -18,11 +18,12 @@
 
 		var messaging = {};
 
-		messaging.init = function(source, ssid, destination, message, symbol){
+		messaging.init = function(source, ssid, destination, dest_ssid, message, symbol){
 
 			messaging.source = source;
 			messaging.ssid = ssid;
 			messaging.destination = destination;
+			messaging.dest_ssid = dest_ssid;
 			messaging.message = message;
 
 			messaging.symbol = symbol;
@@ -55,9 +56,10 @@
 		messaging.generate = function(){
 
 			var message = messaging.message.get_value(),
-			source_address = messaging.source.get_value(),
-			source_ssid = parseFloat(messaging.ssid.get_value()),
-			destination_address = messaging.destination.get_value();
+				source_address = messaging.source.get_value(),
+				source_ssid = parseFloat(messaging.ssid.get_value()),
+				destination_address = messaging.destination.get_value(),
+				dest_ssid = messaging.dest_ssid.get_value();
 
 			var message_data = [];
 			for(var i = 0; i < message.length; i++)
@@ -65,7 +67,7 @@
 			
 			var packet = new APRSPacket(message_data);
 			packet.set_source_address(source_address, source_ssid);
-			packet.set_destination_address(destination_address, 0);
+			packet.set_destination_address(destination_address, dest_ssid);
 			packet.set_control(APRSPacket.STD_CONTROL);
 			packet.set_PID(APRSPacket.STD_PID);
 			packet.set_message_data(message_data);