changing server placeholder in login

This commit is contained in:
Jeena 2013-09-20 14:10:11 +02:00
parent 8865361f2d
commit 43b1135762

View file

@ -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));
};