mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-01 05:39:31 +02:00
18 lines
445 B
JavaScript
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);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
});
|