Reclass traffic-table to traffic_viewer-table.

The table was picking up the odd/even highlighting.
This commit is contained in:
bsimpson63
2013-04-14 18:03:22 -04:00
parent 1f64bf6e83
commit 1ea76b8f28
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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