I don't think this `else` block is necessary as you are setting `this.ui.apply.prop('disabled', true);` at the beginning of this function.