Bug 405650 - "Integer overflow during creating custom reminders" [r=philipp]
authorStefan Sitter <ssitter@gmail.com>
Mon, 08 Dec 2008 09:48:41 +0000
changeset 1367 585097dc9df594d981c63b36cf562496c5e864dc
parent 1366 e4a95ddb4eaa354e41a0c88f3cabe46d5905c56a
child 1368 03173247272642e62e5cce722cd3387d71e18299
push idunknown
push userunknown
push dateunknown
reviewersphilipp
bugs405650
Bug 405650 - "Integer overflow during creating custom reminders" [r=philipp]
calendar/base/content/dialogs/calendar-event-dialog-reminder.xul
--- a/calendar/base/content/dialogs/calendar-event-dialog-reminder.xul
+++ b/calendar/base/content/dialogs/calendar-event-dialog-reminder.xul
@@ -90,17 +90,18 @@
           <column/>
           <column flex="1"/>
         </columns>
         <rows>
           <row align="top">
             <radio selected="true"/>
             <vbox>
               <hbox>
-                <textbox id="reminder-length" size="1" oninput="updateReminderLength(event)"/>
+                <textbox id="reminder-length" size="5" type="number" max="32767"
+                         oninput="updateReminderLength(event)"/>
                 <menulist id="reminder-unit" oncommand="updateReminder()" flex="1">
                   <menupopup>
                     <menuitem label="&alarm.units.minutes;" value="minutes" selected="true"/>
                     <menuitem label="&alarm.units.hours;" value="hours"/>
                     <menuitem label="&alarm.units.days;" value="days"/>
                   </menupopup>
                 </menulist>
                 <menulist id="reminder-relation" oncommand="updateReminder()" flex="1">