Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Another improvement to issue 5834

  • Loading branch information...
commit 11a249fbabc09e4a2110a2310f4bb2e36170fe90 1 parent 3965dd0
Sebastian Zartner authored August 24, 2012
19  extension/content/firebug/cookies/cookieReps.js
@@ -935,32 +935,21 @@ CookieReps.SizeInfoTip = domplate(Firebug.Rep,
935 935
         TABLE({"class": "sizeInfoTip", "id": "cookiesSizeInfoTip", role:"presentation"},
936 936
             TBODY(
937 937
                 FOR("size", "$sizeInfo",
938  
-                    TAG("$size|getRowTag", {size: "$size"})
  938
+                    TAG("$size|sizeTag", {size: "$size"})
939 939
                 )
940 940
             )
941 941
         ),
942 942
 
943 943
     sizeTag:
944  
-        TR({"class": "sizeInfoRow", $collapsed: "$size|hideRow"},
  944
+        TR({"class": "sizeInfoRow"},
945 945
             TD({"class": "sizeInfoLabelCol"}, "$size.label"),
946 946
             TD({"class": "sizeInfoSizeCol"}, "$size|formatSize"),
947 947
             TD({"class": "sizeInfoDetailCol"}, "$size|formatNumber")
948 948
         ),
949 949
 
950  
-    getRowTag: function(size)
951  
-    {
952  
-        return (size.label == "-") ? this.separatorTag : this.sizeTag;
953  
-    },
954  
-
955  
-    hideRow: function(size)
956  
-    {
957  
-        return size.size < 0;
958  
-    },
959  
-
960 950
     formatSize: function(size)
961 951
     {
962  
-        size = Str.formatSize(size.size);
963  
-        return size;
  952
+        return Str.formatSize(size.size);
964 953
     },
965 954
 
966 955
     formatNumber: function(size)
@@ -977,7 +966,7 @@ CookieReps.SizeInfoTip = domplate(Firebug.Rep,
977 966
         sizeInfo.push({label: Locale.$STR("cookie.sizeinfo.Size"), size: size});
978 967
 
979 968
         if (size != rawSize)
980  
-            sizeInfo.push({label: Locale.$STR("cookie.sizeinfo.RawSize"), size: rawSize});
  969
+            sizeInfo.push({label: Locale.$STR("cookie.sizeinfo.Raw_Size"), size: rawSize});
981 970
 
982 971
         this.tag.replace({sizeInfo: sizeInfo}, parentNode);
983 972
     },
2  extension/locale/en-US/cookies.properties
@@ -318,4 +318,4 @@ cookies.console.Filter_By_Cookies=Filter By Cookies
318 318
 firebug.shortcut.removeAllCookies.label=Remove All Cookies
319 319
 
320 320
 cookie.sizeinfo.Size=Size
321  
-cookie.sizeinfo.RawSize=Raw Size
  321
+cookie.sizeinfo.Raw_Size=Raw Size

0 notes on commit 11a249f

Please sign in to comment.
Something went wrong with that request. Please try again.