moved socket connection out of app.js

This commit is contained in:
barisusakli
2015-09-18 10:58:32 -04:00
parent a14810a2e0
commit fbfb39f967
5 changed files with 239 additions and 231 deletions

View File

@@ -28,7 +28,7 @@ define('forum/login', ['csrf', 'translator'], function(csrf, translator) {
'x-csrf-token': csrf.get()
},
success: function(data, status) {
window.location.href = data;
window.location.href = data + '?loggedin';
},
error: function(data, status) {
errorEl.find('p').translateText(data.responseText);