Comment 4 for bug 1653144

Revision history for this message
David Girault (dfgweb) wrote :

Another javascript error when clicking on a line on a blame view in browser (ie. http://example.com/trac/browser/project/trunk/Makefile?annotate=blame&rev=28):

blame.js:92 Uncaught TypeError: Cannot read property 'mozilla' of undefined
    at Object.success (blame.js:92)
    at fire (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at done (jquery.js:5)
    at XMLHttpRequest.callback (jquery.js:5)
(anonymous) @ blame.js:92
fire @ jquery.js:2
fireWith @ jquery.js:2
done @ jquery.js:5
callback @ jquery.js:5

Faulty code:

// workaround non-clickable "Close" issue in Firefox
if ($.browser.mozilla || $.browser.safari)
  message.find("div.inlinebuttons").next().css("clear", "right");

It seems $.browser is undefined in installed JQuery !