Browse Source

refactor js show_warning method so that it doesn't break inheritance chain

pull/36/head
Kiril Vangelovski 10 years ago
parent
commit
645fa8c768
  1. 7
      web_warning_sound/static/src/js/sound_extend.js

7
web_warning_sound/static/src/js/sound_extend.js

@ -28,12 +28,7 @@ openerp.web_warning_sound = function(instance) {
audio.play();
error.data.fault_code = error.data.fault_code.replace(re, '');
}
instance.web.dialog($('<div>' + QWeb.render('CrashManager.warning', {error: error}) + '</div>'), {
title: "OpenERP " + _.str.capitalize(error.type),
buttons: [
{text: _t("Ok"), click: function() { $(this).dialog("close"); }}
]
});
return this._super.apply(this, arguments);
},
});
}
Loading…
Cancel
Save