diff --git a/assets/webconfig/js/wizard.js b/assets/webconfig/js/wizard.js index 9c7534a4..79fc9182 100755 --- a/assets/webconfig/js/wizard.js +++ b/assets/webconfig/js/wizard.js @@ -718,12 +718,7 @@ function startWizardPhilipsHue(e) { $('#wizp1_footer').html(''); $('#wizp2_body').html('
'); - var hidePort = "hidden-lg"; - if (storedAccess === 'expert') { - hidePort = ""; - } - - $('#wh_topcontainer').append('

' + $.i18n(hue_desc1) + '

' + + var topContainer_html = '

' + $.i18n(hue_desc1) + '

' + '
' + '
' + '

' + $.i18n('wiz_hue_ip') + '

' + @@ -732,14 +727,18 @@ function startWizardPhilipsHue(e) { ' ' + '
' + '
' + ' ' + - '
' + - '
' + - ' :' + - '
' + - '

' - ); - $('#wh_topcontainer').append(); - $('#wh_topcontainer').append(''); + ' '; + + if (storedAccess === 'expert') { + topContainer_html += '
' + + ':' + + '
'; + } + + topContainer_html += '

'; + topContainer_html += ''; + + $('#wh_topcontainer').append(topContainer_html); $('#usrcont').append('

' + $.i18n('wiz_hue_username') + '

' + '
' + @@ -795,9 +794,14 @@ function checkHueBridge(cb, hueUser) { var host = hueIPs[hueIPsinc].host; var port = hueIPs[hueIPsinc].port; - if (usr != '') { + if (usr != '') + { getProperties_hue_bridge(cb, decodeURIComponent(host), port, usr); } + else + { + cb(false, usr); + } if (isAPIv2Ready) { $('#port').val(443);