Fixed a bug where tethering is not allowed unless it's connected 88/17388/1
authorJimmy Huang <jimmy.huang@intel.com>
Thu, 6 Mar 2014 19:18:41 +0000 (11:18 -0800)
committerJimmy Huang <jimmy.huang@intel.com>
Thu, 6 Mar 2014 19:18:41 +0000 (11:18 -0800)
Change-Id: Ied1e3d840ee585cf15097117a7f595044a993cfb
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
js/panel-connman.js

index 3e27cdd..8af5326 100644 (file)
@@ -576,7 +576,7 @@ function connmanConstructTetheringElement(technology) {
 
     console.log('Connman technology ' + technology.prop.Type + ' is tethered: ' + technology.prop.Tethering);
 
-    if (technology.prop.Powered === true && technology.prop.Connected === true) {
+    if (technology.prop.Powered === true) {
         if (technology.prop.Tethering === true) {
             $('#toggle_tethering_' + technology.prop.Type).val('on').slider('refresh');
             $('#input_wifi_tethering_id').textinput('disable');