зеркало из https://github.com/mozilla/gecko-dev.git
Fixed looking for the correct stylesheet
This commit is contained in:
Родитель
ef0c09bc62
Коммит
d7ffd5cb2d
|
@ -156,7 +156,7 @@ function calendarInit()
|
|||
// find calendar's style sheet index
|
||||
for (var i=0; i<document.styleSheets.length; i++)
|
||||
{
|
||||
if (document.styleSheets[i].href.indexOf( "/calendar.css" ) != -1 )
|
||||
if (document.styleSheets[i].href.match(/chrome.*\/skin.*\/calendar.css$/))
|
||||
{
|
||||
gCalendarStyleSheet = document.styleSheets[i];
|
||||
break;
|
||||
|
|
|
@ -935,7 +935,7 @@ function calendarColorStyleRuleUpdate( ThisCalendarObject )
|
|||
var tempStyleSheets = document.styleSheets;
|
||||
for (var i=0; i<tempStyleSheets.length; i++)
|
||||
{
|
||||
if (tempStyleSheets[i].href == "chrome://calendar/skin/calendar.css")
|
||||
if (tempStyleSheets[i].href.match(/chrome.*\/skin.*\/calendar.css$/))
|
||||
{
|
||||
j = i;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче