diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-01 21:47:36 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-01 21:47:36 -0400 |
commit | dc03d9202dae2a44af2410d68b2e35d500a8a5ac (patch) | |
tree | cdcd92b58f9f997302c83a7c5c77e1e35de39a3e /data/stuff | |
parent | 0e91a6b3ad2feb7718d6ffdfb06660451f5d064e (diff) | |
download | old-guff-dc03d9202dae2a44af2410d68b2e35d500a8a5ac.tar.bz2 old-guff-dc03d9202dae2a44af2410d68b2e35d500a8a5ac.zip |
add get_users
Diffstat (limited to 'data/stuff')
-rw-r--r-- | data/stuff/test/auth.js | 8 |
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('')); }); |