changing server placeholder in login
This commit is contained in:
parent
8865361f2d
commit
43b1135762
1 changed files with 11 additions and 0 deletions
11
js/Login.js
11
js/Login.js
|
@ -17,6 +17,17 @@ Login.prototype.is_logged_in = function() {
|
|||
|
||||
Login.prototype.log_in = function() {
|
||||
this.app.changeToPage("#login");
|
||||
$("#login form").backend.forEach(function(o, i) {
|
||||
o.addEventListener("change", function(e) {
|
||||
if(e.target.checked) {
|
||||
if(e.target.value == "OwnCloud") {
|
||||
$("#url").placeholder = "http://example.com/owncloud/";
|
||||
} else {
|
||||
$("#url").placeholder = "http://example.com/tt-rss/";
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#login form").addEventListener('submit', this.authenticate.bind(this));
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue