mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #5176 Javascript error in IE for the installer - use "this" instead of e.target which doesn't work (from r100866)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@108831 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4ea1e6e3c1
commit
76dcb97a6f
@ -316,13 +316,12 @@ foreach($locales as $code => $details) {
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var children = $('database_selection').childNodes;
|
var children = $('database_selection').childNodes;
|
||||||
var disabledAdapterClick = function(e) {
|
var disabledAdapterClick = function(e) {
|
||||||
if (!e) e = window.event;
|
|
||||||
// Hide all existing warnings
|
// Hide all existing warnings
|
||||||
var elements = getElementsByClassName('databaseError');
|
var elements = getElementsByClassName('databaseError');
|
||||||
for(var i = 0; i < elements.length; i++) elements[i].style.display = 'none';
|
for(var i = 0; i < elements.length; i++) elements[i].style.display = 'none';
|
||||||
if (e.target.parentNode.childNodes[0].getAttribute('notavailable')) {
|
if (this.parentNode.childNodes[0].getAttribute('notavailable')) {
|
||||||
// Show the warning for this adapter
|
// Show the warning for this adapter
|
||||||
getElementsByClassName('databaseError', e.target.parentNode)[0].style.display = 'block';
|
getElementsByClassName('databaseError', this.parentNode)[0].style.display = 'block';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user