|
|
@ -34,7 +34,8 @@ Dialog.include({ |
|
|
|
}, |
|
|
|
_debrandOptions : function(options) { |
|
|
|
if (options.title && options.title.replace) { |
|
|
|
options.title = options.title.replace(/Odoo/ig, session.muk_branding_system_name); |
|
|
|
options.title = options.title.replace(/Odoo/ig, |
|
|
|
session.muk_branding_system_name); |
|
|
|
} else { |
|
|
|
options.title = session.muk_branding_system_name; |
|
|
|
} |
|
|
@ -42,10 +43,16 @@ Dialog.include({ |
|
|
|
if (!(options.$content instanceof $)) { |
|
|
|
options.$content = $(options.$content); |
|
|
|
} |
|
|
|
var content_html = options.$content.html(); |
|
|
|
content_html = content_html.replace(/Odoo.com/ig, session.muk_branding_website); |
|
|
|
content_html = content_html.replace(/Odoo/ig, session.muk_branding_system_name); |
|
|
|
options.$content.html(content_html); |
|
|
|
options.$content.each(function() { |
|
|
|
var content = $(this).html(); |
|
|
|
if (content) { |
|
|
|
content.replace(/Odoo.com/ig, |
|
|
|
session.muk_branding_website); |
|
|
|
content.replace(/Odoo/ig, |
|
|
|
session.muk_branding_system_name); |
|
|
|
$(this).html(content); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
return options; |
|
|
|
} |
|
|
|