]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/commitdiff
add more time choices
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jan 2013 23:59:38 +0000 (18:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jan 2013 03:40:09 +0000 (22:40 -0500)
javascript/background.js
views/options.html

index 36974bc012b09351c923f1bd3109047ffb0652c0..ed52f43801d3a063ffae6a4db98157c4fe47ee69 100644 (file)
@@ -11,7 +11,7 @@ var CONSTANTS = {
    * @type {Array.<number>}
    * @const
    */
-  TIMES: [-1, 1, 2, 24, 168],
+  TIMES: [-1, 1, 2, 24, 168, 336, 720],
   /**
    * The default time (in hours)
    * @type {number}
index 2c508f47cae8b3cc2c29a960783f02c11006921a..a555e8f96e1ee72924410bc246bfc30f1b8d18b8 100644 (file)
             <b id="optionsTimeFor"></b>
           </div>
           <div class="opt-value">
-            <div class="opt-option">
+            <div class="opt-option">   <!-- 1 hour -->
               <input name="time" class="opt-chk" type="radio" value="1"
                 tabindex="1" checked>
               <div class="opt-label" id="opt-1"></div>
             </div>
             <!-- <br> -->
-            <div class="opt-option">
+            <div class="opt-option">   <!-- 2 hours -->
               <input name="time" class="opt-chk" type="radio" value="2">
               <div class="opt-label" id="opt-2"></div>
             </div>
             <!-- <br> -->
-            <div class="opt-option">
+            <div class="opt-option">   <!-- 1 day -->
               <input name="time" class="opt-chk" type="radio" value="24">
               <div class="opt-label" id="opt-24"></div>
             </div>
             <!-- <br> -->
-            <div class="opt-option">
+            <div class="opt-option">   <!-- 7 days -->
               <input name="time" class="opt-chk" type="radio" value="168">
               <div class="opt-label" id="opt-168"></div>
             </div>
             <!-- <br> -->
+            <div class="opt-option">   <!-- 14 days -->
+              <input name="time" class="opt-chk" type="radio" value="336">
+              <div class="opt-label" id="opt-336"></div>
+            </div>
+            <!-- <br> -->
+            <div class="opt-option">   <!-- 30 days -->
+              <input name="time" class="opt-chk" type="radio" value="720">
+              <div class="opt-label" id="opt-720"></div>
+            </div>
+            <!-- <br> -->
             <div class="opt-option">
               <input name="time" class="opt-chk" type="radio" value="-1">
               <div class="opt-label" id="opt--1"></div>