From 1ea76b8f28e21bd84cdcb125e9b26b0cdf6b2db9 Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Sun, 14 Apr 2013 18:03:22 -0400 Subject: [PATCH] Reclass traffic-table to traffic_viewer-table. The table was picking up the odd/even highlighting. --- r2/r2/controllers/promotecontroller.py | 4 ++-- r2/r2/lib/pages/trafficpages.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/r2/r2/controllers/promotecontroller.py b/r2/r2/controllers/promotecontroller.py index f41c11575..1c8e43e38 100644 --- a/r2/r2/controllers/promotecontroller.py +++ b/r2/r2/controllers/promotecontroller.py @@ -626,8 +626,8 @@ class PromoteController(ListingController): form.set_inputs(name="") form.set_html(".status:first", _("added")) if promote.add_traffic_viewer(thing, user): - user_row = TrafficViewerList(thing).user_row('traffic', user) - jquery(".traffic-table").show( + user_row = TrafficViewerList(thing).user_row('traffic_viewer', user) + jquery(".traffic_viewer-table").show( ).find("table").insert_table_rows(user_row) # send the user a message diff --git a/r2/r2/lib/pages/trafficpages.py b/r2/r2/lib/pages/trafficpages.py index e4f9bb508..3f873f4ae 100644 --- a/r2/r2/lib/pages/trafficpages.py +++ b/r2/r2/lib/pages/trafficpages.py @@ -586,7 +586,7 @@ class TrafficViewerList(UserList): destination = "traffic_viewer" remove_action = "rm_traffic_viewer" - type = "traffic" + type = "traffic_viewer" def __init__(self, link, editable=True): self.link = link