This commit is contained in:
SirFist
2020-02-29 00:29:58 +00:00
2 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,6 @@ function checkAuthResult() {
} }
$(function() { $(function() {
// Login form submission. // Login form submission.
$("#loginform").submit(function(e){ $("#loginform").submit(function(e){
e.preventDefault(); e.preventDefault();
@@ -34,12 +33,13 @@ $(function() {
checkAuthResult(); checkAuthResult();
}); });
$("#btn_config").click(function() { // Config button.
$("#configButton").click(function(){
try{ try{
window.external.openMhlConfig(); window.external.openMhlConfig();
} catch(e){ } catch(e){
createErrorAlert("Error on openMhlConfig: " + e); createErrorAlert("Error on openMhlConfig: " + e);
} }
}) });
}); });

View File

@@ -57,13 +57,13 @@
<input type="password" class="form-control" id="password" placeholder="Password"> <input type="password" class="form-control" id="password" placeholder="Password">
</div> </div>
<button id="submitButton" type="submit" class="btn btn-primary">Submit</button> <button id="submitButton" type="submit" class="btn btn-primary">Submit</button>
<button id="btn_config" class="btn btn-primary">Config</button> <button id="configButton" class="btn btn-secondary">Config</button>
</form> </form>
</div> </div>
</div> </div>
<div class="col-4"></div> <div class="col-4"></div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>