Fixed MemberTableField ajax actions after a search

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@62310 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-09-12 03:22:40 +00:00
parent 117f1171e7
commit db0431e8d6

View File

@ -209,7 +209,7 @@ MemberTableField.prototype = {
}
MemberFilterButton = Class.create();
MemberFilterButton.applyTo('#Form_EditForm #MemberFilterButton');
MemberFilterButton.applyTo('#MemberFilterButton');
MemberFilterButton.prototype = {
initialize: function() {
this.inputFields = new Array();
@ -258,12 +258,12 @@ MemberFilterButton.prototype = {
updateURL += ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '');
new Ajax.Updater( fieldID, updateURL, {
onSuccess: function() {
Behaviour.apply(fieldID, true);
onComplete: function() {
Behaviour.apply($(fieldID), true);
},
onFailure: function( response ) {
errorMessage('Could not filter results: ' + response.responseText );
}.bind(this)
}
});
} catch(er) {
errorMessage('Error searching');