aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/template')
-rw-r--r--admin/themes/default/template/user_list.tpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl
index 2c41cc1a4..66de20e31 100644
--- a/admin/themes/default/template/user_list.tpl
+++ b/admin/themes/default/template/user_list.tpl
@@ -34,6 +34,12 @@ var truefalse = {
'true':"{'Yes'|translate}",
'false':"{'No'|translate}",
};
+
+var statusLabels = {
+{foreach from=$label_of_status key=status item=label}
+ '{$status}' : '{$label|escape:javascript}',
+{/foreach}
+};
{/footer_script}
{footer_script}{literal}
@@ -260,11 +266,7 @@ jQuery(document).ready(function() {
user.email = user.email || '';
- jQuery("#action select[name=status] option").each(function() {
- if (user.status == jQuery(this).val()) {
- user.statusLabel = jQuery(this).html();
- }
- });
+ user.statusLabel = statusLabels[user.status];
/* Render the underscore template */
_.templateSettings.variable = "user";