mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
117f1171e7
commit
db0431e8d6
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user