summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-01-03 15:01:20 +0100
committerByron Jones <bjones@mozilla.com>2012-01-03 15:01:20 +0100
commit173cf5e3efb836eb0e2ecffc9c87ebe82304cbe5 (patch)
treeceb9980181e3a8c6d3fa3d0dd9c7d49f530d0e4d
parenteca4822f0ad4733af64425c10b9edd1d7ca62772 (diff)
downloadbugzilla-173cf5e3efb836eb0e2ecffc9c87ebe82304cbe5.tar.gz
bugzilla-173cf5e3efb836eb0e2ecffc9c87ebe82304cbe5.tar.xz
bug 714759: fix IE js syntax error
-rw-r--r--extensions/BMO/web/js/edituser_menu.js2
-rw-r--r--template/en/default/global/user.html.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/BMO/web/js/edituser_menu.js b/extensions/BMO/web/js/edituser_menu.js
index d37d2ed00..392857ab8 100644
--- a/extensions/BMO/web/js/edituser_menu.js
+++ b/extensions/BMO/web/js/edituser_menu.js
@@ -10,7 +10,7 @@ YAHOO.util.Event.onDOMReady(function() {
admin_usermenu.render(document.body);
});
-function show_admin_username(event, id, email) {
+function show_admin_usermenu(event, id, email) {
if (!admin_usermenu)
return;
admin_usermenu.getItem(0).cfg.setProperty('url', 'editusers.cgi?action=edit&userid=' + id);
diff --git a/template/en/default/global/user.html.tmpl b/template/en/default/global/user.html.tmpl
index a6be5eee9..50014bb29 100644
--- a/template/en/default/global/user.html.tmpl
+++ b/template/en/default/global/user.html.tmpl
@@ -27,8 +27,8 @@
[% FILTER collapse %]
[% IF user.id %]
<a class="email" href="mailto:[% who.email FILTER html %]"
- [% IF user.in_group('editusers') || user.bless_groups.size > 0 %]
- onclick="show_admin_username(event, [% who.id FILTER none %], '[% who.email FILTER js %]'); return false"
+ [% IF who.id && (user.in_group('editusers') || user.bless_groups.size > 0) %]
+ onclick="show_admin_usermenu(event, [% who.id FILTER none %], '[% who.email FILTER js %]'); return false"
[% END %]
title="[% who.identity FILTER html %]">
[%- END -%]