mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-12-25 01:53:48 +01:00
Hiding join other network for now
This commit is contained in:
parent
089dae1307
commit
e5483988b5
@ -10,7 +10,7 @@
|
||||
|
||||
var _page;
|
||||
var _list;
|
||||
var _joinOtherItem;
|
||||
//var _joinOtherItem;
|
||||
var _networks;
|
||||
var _networkAPI = new NetworkAPI();
|
||||
var _boxData = {};
|
||||
@ -24,7 +24,7 @@
|
||||
console.log("Join network page pageinit");
|
||||
_page = $(this);
|
||||
_list = _page.find("ul[data-role=listview]");
|
||||
_joinOtherItem = _list.find("#joinOther");
|
||||
//_joinOtherItem = _list.find("#joinOther");
|
||||
console.log(" list: ",_list);
|
||||
});
|
||||
$.mobile.document.on( "pagebeforeshow", PAGE_ID, function( event, data ) {
|
||||
@ -41,10 +41,10 @@
|
||||
clearTimeout(_refreshDelay);
|
||||
});
|
||||
function refreshNetworks() {
|
||||
console.log("JoinNetwork:refreshNetworks");
|
||||
//console.log("JoinNetwork:refreshNetworks");
|
||||
d3d.util.showLoader();
|
||||
_networkAPI.scan(function(data) { // completed
|
||||
console.log("JoinNetwork:refreshNetworks:scanned");
|
||||
//console.log("JoinNetwork:refreshNetworks:scanned");
|
||||
d3d.util.hideLoader();
|
||||
_networks = {};
|
||||
$.each(data.networks, function(index,network) {
|
||||
@ -62,9 +62,9 @@
|
||||
var baseConnectingLink = _list.data("connecting-target");
|
||||
var baseSecuredLink = _list.data("secured-target");
|
||||
var linkParams = $.extend({}, _boxData);
|
||||
console.log(" linkParams: ",linkParams);
|
||||
//console.log(" linkParams: ",linkParams);
|
||||
$.each(_networks, function(index,network) {
|
||||
console.log(" network: ",network);
|
||||
//console.log(" network: ",network);
|
||||
linkParams.ssid = network.ssid;
|
||||
|
||||
var secured = (network.encryption !== "none" && network.encryption !== "");
|
||||
@ -77,12 +77,12 @@
|
||||
} else {
|
||||
link = d3d.util.replaceURLParameters(baseConnectingLink,linkParams);
|
||||
}
|
||||
console.log(" link: ",link);
|
||||
//console.log(" link: ",link);
|
||||
_list.append(
|
||||
$('<li data-icon="'+icon+'"><a href="'+link+'">'+network.ssid+'</a></li>')
|
||||
);
|
||||
});
|
||||
_list.append(_joinOtherItem);
|
||||
//_list.append(_joinOtherItem);
|
||||
_list.listview('refresh'); // jQuery mobile enhance content
|
||||
}
|
||||
})(window);
|
||||
|
@ -123,7 +123,7 @@
|
||||
<ul data-role="listview"
|
||||
data-connecting-target="#connecting_to_network"
|
||||
data-secured-target="#join_secured_network">
|
||||
<li data-icon="edit" id="joinOther"><a href="#join_other_network">Other...</a></li>
|
||||
<!-- <li data-icon="edit" id="joinOther"><a href="#join_other_network">Other...</a></li> -->
|
||||
</ul>
|
||||
</div><!-- /content -->
|
||||
</div><!-- /page -->
|
||||
|
Loading…
Reference in New Issue
Block a user