Clean code.

This commit is contained in:
Lars Jung 2015-04-19 23:23:34 +02:00
parent 52ca5275b1
commit 448c889e56

View file

@ -115,15 +115,15 @@ modulejs.define('main/info', ['$', 'config'], function ($, config) {
function request(data) {
$.ajax({
url: 'server/php/index.php',
type: 'POST',
dataType: 'JSON',
data: data
})
.always(function () {
url: 'server/php/index.php',
type: 'POST',
dataType: 'JSON',
data: data
})
.always(function () {
window.location.reload();
});
window.location.reload();
});
}
function onLogin() {