Fixes TIVI-2784 - Wifi password is not empty 72/17172/1
authorJimmy Huang <jimmy.huang@intel.com>
Tue, 4 Mar 2014 20:04:00 +0000 (12:04 -0800)
committerJimmy Huang <jimmy.huang@intel.com>
Tue, 4 Mar 2014 20:04:00 +0000 (12:04 -0800)
Fixes an issue where the wifi password input field is not cleared when user tries to connect to another encrypted network.

Change-Id: I7692cf041196db490dcfc3d955ad817b57def778
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
js/panel-connman.js

index c093d23..48dbe39 100644 (file)
@@ -87,6 +87,11 @@ function connmanPanelInit() {
         connmanConstructServicePanel(service);
     });
 
+    /* WiFi connect page */
+    $('#page_wifi_connect').on('pagebeforeshow', function(event, data) {
+        $('#input_wifi_connect_passphrase').val('');
+    });
+
     /* WiFi add new network page */
     $('#page_wifi_add').on('pagebeforeshow', function(event, data) {
         $('#input_wifi_add_ssid').val('');