mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-12-26 18:43:48 +01:00
Only allow connecting when password is set
This commit is contained in:
parent
427b8f309d
commit
fdb6a22549
@ -47,7 +47,7 @@
|
|||||||
console.log("JoinSecuredNetworkPage:submit");
|
console.log("JoinSecuredNetworkPage:submit");
|
||||||
// ToDo: validation
|
// ToDo: validation
|
||||||
// http://www.raymondcamden.com/index.cfm/2012/7/30/Example-of-form-validation-in-a-jQuery-Mobile-Application
|
// http://www.raymondcamden.com/index.cfm/2012/7/30/Example-of-form-validation-in-a-jQuery-Mobile-Application
|
||||||
|
if(_passwordField.val().length === 0) { return false; }
|
||||||
var submitLink = _form.data("target");
|
var submitLink = _form.data("target");
|
||||||
submitLink = d3d.util.replaceURLParameters(submitLink,_pageData);
|
submitLink = d3d.util.replaceURLParameters(submitLink,_pageData);
|
||||||
$.mobile.changePage(submitLink);
|
$.mobile.changePage(submitLink);
|
||||||
|
Loading…
Reference in New Issue
Block a user