mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
4082561e5d
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92643 467b73ca-7a2a-4603-9d3b-597d59a354a9
19 lines
378 B
JavaScript
Executable File
19 lines
378 B
JavaScript
Executable File
Behaviour.register({
|
|
'a.cmsEditlink' : {
|
|
onclick : function() {
|
|
if(this.href.match(/admin\/show\/([0-9]+)($|#|\?)/)) {
|
|
$('Form_EditForm').getPageFromServer(RegExp.$1);
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
Behaviour.register({
|
|
'#Form_EditForm' : {
|
|
changeDetection_fieldsToIgnore : {
|
|
'restricted-chars[Form_EditForm_URLSegment]' : true,
|
|
'Sort' : true
|
|
}
|
|
}
|
|
}); |