summaryrefslogtreecommitdiff
path: root/addons/website_quote/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-19 16:18:40 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-19 16:18:40 +0200
commit11270336fa7dd225bf03fc664d80b1604d4cbc4b (patch)
tree55c9e9bfe4f507a39e64f2f83ae16e698654b449 /addons/website_quote/static/src/js
parentb656eda22d7afc1e320c15870eb374aefd04e6f3 (diff)
parentf07ca36b9b8ea47c62cf1aec0428f4fa251b0e40 (diff)
[MERGE] forward port branch saas-11 up to f07ca36b9b8
Diffstat (limited to 'addons/website_quote/static/src/js')
-rw-r--r--addons/website_quote/static/src/js/website_quotation.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website_quote/static/src/js/website_quotation.js b/addons/website_quote/static/src/js/website_quotation.js
index a6e1b701c5e..04705686f32 100644
--- a/addons/website_quote/static/src/js/website_quotation.js
+++ b/addons/website_quote/static/src/js/website_quotation.js
@@ -135,12 +135,18 @@ if(!$('.o_website_quote').length) {
case "h1":
var id = self.setElementId('quote_header_', el);
var text = self.extractText($(el));
+ if (!text) {
+ break;
+ }
last_li = $("<li>").append($('<a href="#'+id+'"/>').text(text)).appendTo(self.$el);
last_ul = false;
break;
case "h2":
var id = self.setElementId('quote_', el);
var text = self.extractText($(el));
+ if (!text) {
+ break;
+ }
if (last_li) {
if (!last_ul) {
last_ul = $("<ul class='nav'>").appendTo(last_li);