projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1f7ee
)
[FIX] avoid blowing up editor if run on non-updated editor_head template without...
author
Xavier Morel
<xmo@openerp.com>
Wed, 5 Feb 2014 10:36:23 +0000
(11:36 +0100)
committer
Xavier Morel
<xmo@openerp.com>
Wed, 5 Feb 2014 10:36:23 +0000
(11:36 +0100)
bzr revid: xmo@openerp.com-
20140205103623
-bk038voq3f8zj9vm
addons/website/static/src/js/website.editor.js
patch
|
blob
|
history
diff --git
a/addons/website/static/src/js/website.editor.js
b/addons/website/static/src/js/website.editor.js
index
edcff1b
..
e5ba501
100644
(file)
--- a/
addons/website/static/src/js/website.editor.js
+++ b/
addons/website/static/src/js/website.editor.js
@@
-442,7
+442,9
@@
start: function() {
// remove placeholder editor bar
var fakebar = document.getElementById('website-top-navbar-placeholder');
- fakebar.parentNode.removeChild(fakebar);
+ if (fakebar) {
+ fakebar.parentNode.removeChild(fakebar);
+ }
var self = this;
this.saving_mutex = new openerp.Mutex();