mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Fixed JS undefined errors with 'addgroup' and 'deletegroup' elements
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63802 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7d9bfd8c39
commit
1e578a32cb
@ -137,13 +137,17 @@ deletegroup = {
|
||||
Behaviour.addLoader(function () {
|
||||
// Set up add page
|
||||
Observable.applyTo($('addgroup_options'));
|
||||
$('addgroup').onclick = addgroup.button_onclick;
|
||||
$('addgroup').getElementsByTagName('button')[0].onclick = function() {return false;};
|
||||
$('addgroup_options').onsubmit = addgroup.form_submit;
|
||||
if($('addgroup')) {
|
||||
$('addgroup').onclick = addgroup.button_onclick;
|
||||
$('addgroup').getElementsByTagName('button')[0].onclick = function() {return false;};
|
||||
$('addgroup_options').onsubmit = addgroup.form_submit;
|
||||
}
|
||||
|
||||
// Set up delete page
|
||||
Observable.applyTo($('deletegroup_options'));
|
||||
$('deletegroup').onclick = deletegroup.button_onclick;
|
||||
$('deletegroup').getElementsByTagName('button')[0].onclick = function() {return false;};
|
||||
$('deletegroup_options').onsubmit = deletegroup.form_submit;
|
||||
if($('deletegroup')) {
|
||||
$('deletegroup').onclick = deletegroup.button_onclick;
|
||||
$('deletegroup').getElementsByTagName('button')[0].onclick = function() {return false;};
|
||||
$('deletegroup_options').onsubmit = deletegroup.form_submit;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user