Bug 795097 - Use a numeric input box in the News "Download headers" dialog. ui-r=bwinton, r=jcranmer
authoraceman <acelists@atlas.sk>
Tue, 02 Oct 2012 18:53:58 -0400
changeset 13795 0581ea9c4a4f19d7ef2982bc93f04ae65939a65e
parent 13794 9c73c166f56ee833cc60bbee7a38b9dc4d4b160a
child 13796 1dc2c3e736e94fcd9944ff0b9c584c716d9ac8f8
push id762
push userbugzilla@standard8.plus.com
push dateMon, 19 Nov 2012 21:16:42 +0000
treeherdercomm-beta@4a2f61509b17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwinton, jcranmer
bugs795097
Bug 795097 - Use a numeric input box in the News "Download headers" dialog. ui-r=bwinton, r=jcranmer
mailnews/news/content/downloadheaders.xul
--- a/mailnews/news/content/downloadheaders.xul
+++ b/mailnews/news/content/downloadheaders.xul
@@ -1,44 +1,49 @@
-<?xml version="1.0"?> 
+<?xml version="1.0"?>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
-<?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?> 
+<?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?>
 
 <!DOCTYPE dialog SYSTEM "chrome://messenger/locale/downloadheaders.dtd">
 
 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         style="max-width: 27em;"
         buttonpack="center"
         ondialogaccept="return OkButtonCallback();"
         ondialogcancel="return CancelButtonCallback();"
         onload="OnLoad();">
 
   <stringbundle id="bundle_news" src="chrome://messenger/locale/news.properties"/>
   <script type="application/javascript" src="chrome://messenger/content/downloadheaders.js"/>
 
-  <label class="header" style="width: 25em; max-width: 25em;" id="newsgroupLabel" control="downloadGroup"/> 
+  <label class="header" style="width: 25em; max-width: 25em;" id="newsgroupLabel" control="downloadGroup"/>
   <description style="width: 25em; max-width: 25em;" id="info" control="downloadGroup"/>
   <separator class="thin"/>
   <vbox class="indent">
     <radiogroup id="downloadGroup">
       <radio id="all" label="&all.label;" accesskey="&all.accesskey;"
              oncommand="setupDownloadUI(false);"/>
       <separator class="thin"/>
       <hbox align="center" valign="middle">
         <radio id="some" selected="true" label="&download.label;"
                accesskey="&download.accesskey;"
                oncommand="setupDownloadUI(true);"
                aria-labelledby="some number headers"/>
-        <textbox id="number" size="7" aria-labelledby="some number headers"/>
+        <textbox id="number"
+                 size="7"
+                 type="number"
+                 min="0"
+                 increment="10"
+                 aria-labelledby="some number headers"/>
         <label value="&headers.label;" accesskey="&headers.accesskey;"
                id="headers" control="number"/>
       </hbox>
     </radiogroup>
 
     <hbox class="indent" align="start">
       <checkbox id="markread" label="&mark.label;" accesskey="&mark.accesskey;"/>
     </hbox>
   </vbox>
-  
+
 </dialog>