mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Fix #205: message compose generates errors in IE
Now uses JQuery.inArray() instead of Array.indexOf()
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
function admincheck(elem) {
|
||||
var admins = ${unsafe(simplejson.dumps(thing.admins))};
|
||||
|
||||
if (admins.indexOf(elem.value) >= 0) {
|
||||
if ($.inArray(elem.value, admins) >= 0) {
|
||||
$(".admin-to").text(elem.value);
|
||||
$(".clippy").show();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user