Improve settings window and cleanup

This commit is contained in:
Eike Foken
2011-05-06 12:33:43 +02:00
parent 90c27d82cd
commit 6a1ae19983
9 changed files with 299 additions and 272 deletions

View File

@@ -3,6 +3,7 @@
*
* @param {} title
* @param {} message
* @param {} icon
*/
var message = function(title, message, icon) {
Ext.Msg.show({
@@ -15,11 +16,26 @@ var message = function(title, message, icon) {
});
};
var settings = new SettingsWindow();
/**
* Logs the user out.
*/
var logout = function() {
Ext.Ajax.request({
url: BASE_URL + 'auth/logout',
method: 'post',
success: function(xhr) {
window.location = BASE_URL + 'auth/login';
}
});
};
/**
* Application main entry point
*/
Ext.onReady(function() {
Ext.QuickTips.init();
if (typeof(SettingsWindow) == "function") {
settings = new SettingsWindow();
}
});