Commit 76ec27f7 authored by Eric Windham's avatar Eric Windham

fixed issue for delete fields

parent 8a322010
......@@ -30,7 +30,7 @@ define( [], function( settingCollection ) {
* When we init a save action model, register a listener for deleted
* fields
*/
this.listenTo( Backbone.Radio.channel( 'fields' ), 'deleteFields',
this.listenTo( Backbone.Radio.channel( 'fields' ), 'delete:field',
this.checkFieldDeleted );
},
......@@ -62,7 +62,7 @@ define( [], function( settingCollection ) {
*/
checkFieldDeleted: function( fieldModel ) {
var submitter_email = this.model.get( 'submitter_email' );
if( submitter_email == fieldModel.get( 'key' ) ) {
this.model.set( 'submitter_email', '' );
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment