several IE11 fixes avoiding or working around javascript errors

This commit is contained in:
Ralf Becker 2014-02-19 15:12:26 +00:00
parent b423456469
commit e44daf1c8f

View File

@ -151,7 +151,7 @@ egw_LAB.wait(function() {
$j('#quick_add').on({ $j('#quick_add').on({
mouseover: function(ev){ mouseover: function(ev){
// do NOT react on bubbeling events from contained selectbox // do NOT react on bubbeling events from contained selectbox
if (ev.relatedTarget.id != 'quick_add_selectbox') if (ev.relatedTarget && ev.relatedTarget.id != 'quick_add_selectbox')
{ {
$j(this).css({ $j(this).css({
transition: "0.2s ease-out 0s", transition: "0.2s ease-out 0s",
@ -168,7 +168,7 @@ egw_LAB.wait(function() {
}, },
mouseout: function(ev){ mouseout: function(ev){
// do NOT react on bubbeling events from contained selectbox // do NOT react on bubbeling events from contained selectbox
if (ev.relatedTarget.id != 'quick_add_selectbox') if (ev.relatedTarget && ev.relatedTarget.id != 'quick_add_selectbox')
{ {
$j(this).css({ $j(this).css({
transition: "0.2s ease-out 0s", transition: "0.2s ease-out 0s",