|
@@ -1,3 +1,8 @@
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<script src="js/vendor/jquery-1.11.0.min.js"></script>
|
|
|
+<script src="js/jquery.fancybox.min.js"></script>
|
|
|
+</head>
|
|
|
<?php
|
|
|
echo '<h1>Scan Wifi SSID...</h1><br>';
|
|
|
|
|
@@ -12,23 +17,31 @@
|
|
|
echo '<option value="'.$ssid.'">'.$ssid.'</option>';
|
|
|
}
|
|
|
echo '</select></pre>';
|
|
|
- echo '<input type="button" value="Select" OnClick="sendValue()">'
|
|
|
+ echo '<input type="button" id="close-button" value="Select" OnClick="sendValue()">'
|
|
|
?>
|
|
|
-
|
|
|
+<script>
|
|
|
+ $(document).ready(function(){
|
|
|
+ $(function() {
|
|
|
+ $('#close-button').click(function(){
|
|
|
+ parent.$.fancybox.close();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+</script>
|
|
|
<script language="javascript">
|
|
|
var ssid_selected;
|
|
|
-
|
|
|
function sendValue()
|
|
|
{
|
|
|
getComboA(document.getElementById("ssids"));
|
|
|
- window.opener.document.getElementById('WifiSsid').value=ssid_selected;
|
|
|
- window.close();
|
|
|
+ parent.document.getElementById('WifiSsid').value=ssid_selected;
|
|
|
}
|
|
|
|
|
|
function getComboA(sel)
|
|
|
{
|
|
|
ssid_selected = sel.value;
|
|
|
+ console.log(sel.value);
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
+</html>
|