summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-09-24 10:24:23 +0200
committerChristophe Matthieu <chm@openerp.com>2013-09-24 10:24:23 +0200
commit9bb4af7d9fc2b04efa297cd4811916ab181a5ff4 (patch)
tree58bed8010af883c779622a5900085bb6805449d2 /addons/website/static/src
parent3862a4e83da1c1bda2711d17d55148a41a3ee504 (diff)
[IMP] website snippet: add comment for auto set snippet and remove data-snippet-id in website_sale view
bzr revid: chm@openerp.com-20130924082423-ylzeprl3w4tlb83e
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.snippets.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.snippets.js b/addons/website/static/src/js/website.snippets.js
index 44e30d612e3..5256d8324ed 100644
--- a/addons/website/static/src/js/website.snippets.js
+++ b/addons/website/static/src/js/website.snippets.js
@@ -1027,7 +1027,6 @@
this.set_options_background();
this.set_options_style();
}
- console.log(nb);
if (nb <= 1) {
this.$target.find('.carousel-control').addClass("hidden");
}
@@ -1159,7 +1158,12 @@
}
});
- website.snippet.selector.push([ _.map([1,2,3,4,5,6,7,8,9,10,11,12], function (v) {return '.row > .col-md-'+v;}).join(","), 'colmd']);
+ /*
+ * data-snippet-id automatically setted
+ * Don't need to add data-snippet-id="..." into the views
+ */
+
+ website.snippet.selector.push([".row > div[class*='col-md-']", 'colmd']);
website.snippet.selector.push(['hr', 'hr']);
})();