silverstripe-cms/javascript/FeedbackAdmin_right.js
Andrew O'Neil 9f4c3d3196 Began interface for comment administration
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39725 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-08 01:16:02 +00:00

18 lines
445 B
JavaScript

Behaviour.register({
'#Form_EditForm' : {
getPageFromServer : function(id) {
statusMessage("loading...");
var requestURL = 'admin/feedback/showtable/' + id;
new Ajax.Request(requestURL, {
asynchronous : true,
method : 'post',
postBody : 'ajax=1',
onSuccess : this.successfullyReceivedPage.bind(this),
onFailure : function(response) {
errorMessage('error loading page',response);
}
});
}
}
});