define( ['sources/gettext', 'underscore', 'alertify', 'sources/pgadmin'], function(gettext, _, alertify, pgAdmin) { pgAdmin.Browser = pgAdmin.Browser || {}; _.extend(pgAdmin.Browser, { report_error: function(title, message, info) { var text = '
\
\ \
\
' + unescape(message) + '
\
\
'; if (info != null && info != '') { text += '
\ \
\
' + unescape(info) + '
\
\
\
' } text += ''; alertify.alert( title, text ) }, }); return pgAdmin.Browser.report_error; });