Skip to content

Commit

Permalink
Fixed all div.fn-label elements so they don't close prematurly.
Browse files Browse the repository at this point in the history
This means the intended text will appear inside the .fn-label element.
  • Loading branch information
ryan953 committed Dec 14, 2011
1 parent 3e26458 commit 507daba
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions js/jquery.fn.gantt.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
if (rm != month) {
months.append(
$('<div class="row header month" style="width: '
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label"/>'
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label">'
+ settings.months[month]
+ '</div></div>'));
month = rm;
Expand All @@ -328,11 +328,11 @@

daysStr += '<div class="row day ' + day_class2 + '" '
+ ' style="width: ' + tools.getCellSize() * hoursInDay + 'px;"> '
+ ' <div class="fn-label"/>' + day.getDate() + '</div></div>';
+ ' <div class="fn-label">' + day.getDate() + '</div></div>';

dowStr += '<div class="row day ' + day_class2 + '" '
+ ' style="width: ' + tools.getCellSize() * hoursInDay + 'px;"> '
+ ' <div class="fn-label"/>' + settings.dow[getDay] + '</div></div>';
+ ' <div class="fn-label">' + settings.dow[getDay] + '</div></div>';

day = rday;
hoursInDay = 0;
Expand All @@ -353,15 +353,15 @@
*/
years.html(years.html() +
'<div class="row header year" style="width: '
+ tools.getCellSize() * daysInYear + 'px;"><div class="fn-label"/>'
+ tools.getCellSize() * daysInYear + 'px;"><div class="fn-label">'
+ year
+ '</div></div>');
/*
* Last month
*/
months.html(months.html() +
'<div class="row header month" style="width: '
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label"/>'
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label">'
+ settings.months[month]
+ '</div></div>');

Expand All @@ -372,11 +372,11 @@

daysStr += '<div class="row day ' + day_class + '" '
+ ' style="width: ' + tools.getCellSize() * hoursInDay + 'px;"> '
+ ' <div class="fn-label"/>' + day.getDate() + '</div></div>';
+ ' <div class="fn-label">' + day.getDate() + '</div></div>';

dowStr += '<div class="row day ' + day_class + '" '
+ ' style="width: ' + tools.getCellSize() * hoursInDay + 'px;"> '
+ ' <div class="fn-label"/>' + settings.dow[day.getDay()] + '</div></div>';
+ ' <div class="fn-label">' + settings.dow[day.getDay()] + '</div></div>';

var dataPanel = core.dataPanel(element, range.length * tools.getCellSize());

Expand Down Expand Up @@ -455,23 +455,23 @@
*/
daysStr += '<div class="row day wd" '
+ ' id="dh-' + rday.getFullYear() + '-' + rday.getWeekOfYear() + '"> '
+ ' <div class="fn-label"/>' + rday.getWeekOfYear() + '</div></div>';
+ ' <div class="fn-label">' + rday.getWeekOfYear() + '</div></div>';
}

/*
* Last year
*/
years.append(
'<div class="row header year" style="width: '
+ tools.getCellSize() * daysInYear + 'px;"><div class="fn-label"/>'
+ tools.getCellSize() * daysInYear + 'px;"><div class="fn-label">'
+ year
+ '</div></div>');
/*
* Last month
*/
months.append(
'<div class="row header month" style="width: '
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label"/>'
+ tools.getCellSize() * daysInMonth + 'px"><div class="fn-label">'
+ settings.months[month]
+ '</div></div>');

Expand Down Expand Up @@ -623,10 +623,10 @@

daysStr += '<div class="row day ' + day_class + '" '
+ ' id="dh-' + tools.genId(rday.getTime()) + ' "> '
+ ' <div class="fn-label"/>' + rday.getDate() + '</div></div>';
+ ' <div class="fn-label">' + rday.getDate() + '</div></div>';
dowStr += '<div class="row day ' + day_class + '" '
+ ' id="dw-' + tools.genId(rday.getTime()) + '"> '
+ ' <div class="fn-label"/>' + settings.dow[getDay] + '</div></div>';
+ ' <div class="fn-label">' + settings.dow[getDay] + '</div></div>';
} //for

/*
Expand Down

0 comments on commit 507daba

Please sign in to comment.