Browse Source

[FIX] javascript

pull/469/head
Holger Brunn 8 years ago
parent
commit
3b61fb5619
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 8
      support_branding/static/src/js/support_branding.js

8
support_branding/static/src/js/support_branding.js

@ -5,9 +5,9 @@
odoo.define('web.support_branding', function(require) {
var CrashManager = require('web.CrashManager');
var core = require('web.core');
var Model = require('web.Model')
var Model = require('web.Model');
var _t = core._t;
CrashManager.extend({
CrashManager.include({
init: function() {
var self = this,
ir_config_parameter = new Model('ir.config_parameter');
@ -64,7 +64,7 @@ odoo.define('web.support_branding', function(require) {
// if the call failed, fire the mailto link
// hoping there is a properly configured email
// client
$body.val($description.val() + '\n' + $body.val())
$body.val($description.val() + '\n' + $body.val());
$button.unbind('click');
$button.click();
})
@ -88,4 +88,6 @@ odoo.define('web.support_branding', function(require) {
});
}
});
// this is already instantiated, so we need to call init manually
require('web.crash_manager').init();
});
Loading…
Cancel
Save