Module: deluge
Branch: master
Commit: e1e1472a8fabfd365939c0129be675ff2f16279c

Author: Damien Churchill <[email protected]>
Date:   Fri Jun  4 16:37:37 2010 +0100

Fix saving the correct event name

---

 deluge/plugins/execute/execute/data/execute.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/plugins/execute/execute/data/execute.js 
b/deluge/plugins/execute/execute/data/execute.js
index c6d31da..d72d303 100644
--- a/deluge/plugins/execute/execute/data/execute.js
+++ b/deluge/plugins/execute/execute/data/execute.js
@@ -99,7 +99,7 @@ Deluge.ux.EditExecuteCommandWindow = 
Ext.extend(Deluge.ux.ExecuteWindowBase, {
        },
 
        onSaveClick: function() {
-               var values = this.form.getForm().getValues();
+               var values = this.form.getForm().getFieldValues();
                deluge.client.execute.save_command(this.command.id, 
values.event, values.command, {
                        success: function() {
                                this.fireEvent('commandedit', this, 
values.event, values.command);
@@ -124,7 +124,7 @@ Deluge.ux.AddExecuteCommandWindow = 
Ext.extend(Deluge.ux.ExecuteWindowBase, {
        },
 
        onAddClick: function() {
-               var values = this.form.getForm().getValues();
+               var values = this.form.getForm().getFieldValues();
                deluge.client.execute.add_command(values.event, values.command, 
{
                        success: function() {
                                this.fireEvent('commandadd', this, 
values.event, values.command);

-- 
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.

Reply via email to