Fix #205: message compose generates errors in IE

Now uses JQuery.inArray() instead of Array.indexOf()
This commit is contained in:
Kay Zhu
2012-03-13 15:14:10 -07:00
committed by Keith Mitchell
parent ffef0ef9d7
commit 70e4d87e7a

View File

@@ -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 {