plainblack.com
Username Password
search
Bookmark and Share

    

Calendar More Button/Box Fix for IE8

User eleger81
Date 9/1/2009 3:16 pm
Views 750
Rating 0    Rate [
|
]
Previous · Next
User Message
eleger81

Hello.  I had an interesting issue with the Calendar's "More Button" using IE8.  When you hover over the button, the pop-up box listing all events for that day did not display in the correct location, but rather somewhere up and to the right instead of below the day.

I adjusted the Javascript's "if" statement for IE8 that solved the problem and may be of assistance to others.  In the Month View template's Metadata Tab,

Replace:

<code>
//IE is stupid
      var isIE = navigator.userAgent.indexOf("MSIE") > -1;
      var isIE7 = navigator.userAgent.indexOf("MSIE 7") > -1;
      if(isIE && !isIE7) {
         //IE 6 and below don't register offsetTop or offsetLeft for the div
</code>

With:

<code>
//IE is stupid
      var isIE = navigator.userAgent.indexOf("MSIE") > -1;
      var isIE7 = navigator.userAgent.indexOf("MSIE 7") > -1;
      var isIE8 = navigator.userAgent.indexOf("MSIE 8.0") > -1;
      if(isIE && !(isIE7 || isIE8)) {
         //IE 6 and below don't register offsetTop or offsetLeft for the div
</code>

Hope someone finds this helpful! Smile

~Eric

--- (Edited on 9/1/2009 4:16 pm [GMT-0400] by eleger81) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

Could you please post this as a bug on the bugboard, so we can double check the problem and the fix, and track that it's been done?

 

--- (Edited on 9/4/2009 7:34 am [GMT-0700] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved