aboutsummaryrefslogtreecommitdiff
path: root/timepollhead.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-18 13:13:38 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-18 13:13:38 +0100
commit9604ccb548382323f9e57b419818bcfaa332559b (patch)
tree37d8eaf7bc17b6f3c6a082889120a35285c0a9fa /timepollhead.rb
parent8f8f6721d17f0d4724d1572f0247c33daf405ef3 (diff)
html validated
Diffstat (limited to 'timepollhead.rb')
-rw-r--r--timepollhead.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/timepollhead.rb b/timepollhead.rb
index f0731ae..bbbbe99 100644
--- a/timepollhead.rb
+++ b/timepollhead.rb
@@ -244,7 +244,7 @@ END
ret += "<td></td>"
}
d = startdate
- while (d.month == startdate.month) do
+ while true do
klasse = "notchoosen"
varname = "new_columnname"
klasse = "disabled" if d < Date.today
@@ -264,8 +264,9 @@ END
</form>
</td>
TD
- ret += "</tr><tr>\n" if d.wday == 0
d = d.next
+ break if d.month != startdate.month
+ ret += "</tr><tr>\n" if d.wday == 1
end
ret += <<END
</tr></table>