mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Fix saving the correct event name
This commit is contained in:
parent
b7e1fe1696
commit
e1e1472a8f
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ Deluge.ux.EditExecuteCommandWindow = Ext.extend(Deluge.ux.ExecuteWindowBase, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onSaveClick: function() {
|
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, {
|
deluge.client.execute.save_command(this.command.id, values.event, values.command, {
|
||||||
success: function() {
|
success: function() {
|
||||||
this.fireEvent('commandedit', this, values.event, values.command);
|
this.fireEvent('commandedit', this, values.event, values.command);
|
||||||
|
@ -124,7 +124,7 @@ Deluge.ux.AddExecuteCommandWindow = Ext.extend(Deluge.ux.ExecuteWindowBase, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onAddClick: function() {
|
onAddClick: function() {
|
||||||
var values = this.form.getForm().getValues();
|
var values = this.form.getForm().getFieldValues();
|
||||||
deluge.client.execute.add_command(values.event, values.command, {
|
deluge.client.execute.add_command(values.event, values.command, {
|
||||||
success: function() {
|
success: function() {
|
||||||
this.fireEvent('commandadd', this, values.event, values.command);
|
this.fireEvent('commandadd', this, values.event, values.command);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue