temboz - Check-in [451]
Not logged in
[Honeypot]  [Browse]  [Help]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline]  [Wiki
  [Patchset]  [Tagging/Branching
Check-in Number: 451
Date: 2009-Oct-31 19:43:48 (local)
2009-Nov-01 02:43:48 (UTC)
User:majid
Branch:
Comment: make sort by item_uid the default
Tickets:
Inspections:
Files:
temboz/pages/view.tmpl      1.81 -> 1.82     6 inserted, 2 deleted

temboz/pages/view.tmpl 1.81 -> 1.82
--- /tmp/T0AjaOKZ	Mon Sep  6 18:02:06 2010
+++ /tmp/T1BjaOKZ	Mon Sep  6 18:02:06 2010
@@ -33,7 +33,7 @@
 #set global $show      = $ratings[$i][0]
 #set global $item_desc = $ratings[$i][1]
 #set global $where     = $ratings[$i][3]
-#set global $sort = $getVar('sort', 'created')
+#set global $sort = $getVar('sort', 'seen')
 #set global $sorts = update.sorts
 #set $i = update.sorts_dict.get($sort, 1)
 #set global $sort      = $sorts[$i][0]
@@ -238,7 +238,11 @@
   \$(document).bind("keydown", "meta+ctrl+z", unhide_last);
   \$(document).bind("keydown", "ctrl+meta+z", unhide_last);
   var articles = \$("div.article");
-  \$("b#count").html(String(articles.size()));
+  if(articles.size() < $overload_threshold) {
+    \$("b#count").html(String(articles.size()));
+  } else {
+    \$("b#count").html(String(articles.size()) + "+");
+  }
 ## use only one column for browsers with less than 600px wide
   if(\$("body").width() < 800) {
     \$("div#initial").removeClass("col1");