Skip to content

Commit

Permalink
Applying Behavior filters to FormRequest responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Oct 27, 2011
1 parent 9dc158f commit c63a3d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Forms/Behavior.FormRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ Behavior.addGlobalFilter('FormRequest', {

if (!updateElement) api.fail('Could not find target element for form update');

//pass null for the update element argument; JFrame does our updating for us
var req = new Form.Request(element, updateElement, {
requestOptions: {
filter: api.get('filter'),
spinnerTarget: updateElement
},
resetForm: api.get('resetForm') || /* noReset is deprecated: */ !element.hasClass('noReset')
}).addEvent('complete', function(){
api.applyFilters(updateElement);
});
api.onCleanup(req.detach.bind(req));
return req;
Expand Down

0 comments on commit c63a3d8

Please sign in to comment.