Author: damoxc
Revision: 5640
Log:
add an onOk event handler that saves and closes the preferences window
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Preferences.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Preferences.js 2009-08-10 09:58:51 UTC
(rev 5639)
+++ trunk/deluge/ui/web/js/Deluge.Preferences.js 2009-08-10 10:24:45 UTC
(rev 5640)
@@ -108,6 +108,11 @@
onClose: function() {
this.hide();
},
+
+ onOk: function() {
+ Deluge.Client.core.set_config(this.optionsManager.getDirty());
+ this.hide();
+ },
addPage: function(page) {
var store = this.categoriesGrid.getStore();
@@ -161,4 +166,4 @@
}
});
-Deluge.Preferences = new Ext.deluge.PreferencesWindow();
\ No newline at end of file
+Deluge.Preferences = new Ext.deluge.PreferencesWindow();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---