Get rid of unsaved changes dialog in feedback admin

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39811 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-10 00:20:08 +00:00
parent 4f3e2216e0
commit 4211621504
1 changed files with 15 additions and 0 deletions

View File

@ -19,6 +19,21 @@ CommentTableField.prototype = {
onkeypress : this.prepareSearch.bind(this)
};
rules['#Form_EditForm'] = {
changeDetection_fieldsToIgnore : {
'ctf[start]' : true,
'ctf[ID]' : true,
'CommentFilterButton' : true,
'CommentFieldName' : true,
'Name' : true,
'Comment' : true,
'Page' : true,
'CommentSearch' : true
}
}
Behaviour.register(rules);
},