aboutsummaryrefslogtreecommitdiff
path: root/data/stuff/test
diff options
context:
space:
mode:
Diffstat (limited to 'data/stuff/test')
-rw-r--r--data/stuff/test/auth.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/stuff/test/auth.js b/data/stuff/test/auth.js
index 408010b..6f10fbf 100644
--- a/data/stuff/test/auth.js
+++ b/data/stuff/test/auth.js
@@ -5,15 +5,15 @@ jQuery(function($) {
"<a ",
"href='#' ",
"class='list-group-item %{css|h}' ",
- "title='Set user to \"%{name|h}.\"' ",
- "data-user_id='%{id|h}' ",
+ "title='Set user to \"%{user_name|h}.\"' ",
+ "data-user_id='%{user_id|h}' ",
">",
"<i class='fa fa-fw fa-spinner fa-spin hidden loading'></i>",
"<i class='fa fa-fw fa-user loading'></i>",
" ",
- "%{name|h}",
+ "%{user_name|h}",
"</a>",
],
@@ -51,7 +51,7 @@ jQuery(function($) {
}).done(function(r) {
list.html($.map(r.users, function(row) {
return TEMPLATES.run('user', $.extend({}, row, {
- css: row.active ? 'active' : '',
+ css: (r.user_id == row.user_id) ? 'active' : '',
}));
}).join(''));
});