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