﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
10664,[PATCH] AdminEnumListPlugin does not work on Firefox 17 with Trac 0.12.4,jun66j5,rjollos,"When visiting admin panel, I got the following error.
{{{
Timestamp: 2012-11-30 12:52:36
Error: TypeError: a.attributes is null
Source File: http://example.org:3000/chrome/common/js/jquery.js
Line: 55
}}}

After applying the following patch, it works well on Firefox 17. Also, I confirmed with Chrome 24 beta, IE 8.
{{{
#!diff
Index: adminenumlistplugin/htdocs/adminenumlist.js
===================================================================
--- adminenumlistplugin/htdocs/adminenumlist.js (revision 12395)
+++ adminenumlistplugin/htdocs/adminenumlist.js (working copy)
@@ -14,7 +14,7 @@

        //IE Doesn't stop selecting text when mousedown returns false we need to check
        // That onselectstart exists and return false if it does
-       var hasOnSelectStart = typeof $(document).attr('onselectstart') != 'undefined';
+       var hasOnSelectStart = document.onselectstart !== undefined;

        // Indicates whether we're dragging a row
        var dragging = false;
}}}",defect,closed,normal,AdminEnumListPlugin,normal,fixed,,,0.12
