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