summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.snippets.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-08-21 18:00:23 +0200
committerChristophe Matthieu <chm@odoo.com>2014-08-21 18:02:14 +0200
commit239b6bc0b5a2a644486737f2b0b71e7e6c0a2edf (patch)
treeb53f6f30cba0149ae9a41d25901ac301c3bbf775 /addons/website/static/src/xml/website.snippets.xml
parentb7beb69e03e14e111d07899c23b82b993ca8a972 (diff)
[IMP] website snippet new option, gallery
website.snippet: The methods described in javascript will be called automatically from the data-method_name = value on li snippets options. The methods are called in the order relative to children of xml (eg: <li data-method1=value1> ... <li data-method2=value2> ... </ li>, the method1 is then called method2). Methods receive two arguments: type (over, click, reset) and value. data-snippet-id-option becomes data-snippet-id. Several xml options can use the same data-snippet-id. add a new gallery snippet convert website_sale to the new option system
Diffstat (limited to 'addons/website/static/src/xml/website.snippets.xml')
-rw-r--r--addons/website/static/src/xml/website.snippets.xml11
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/website/static/src/xml/website.snippets.xml b/addons/website/static/src/xml/website.snippets.xml
index 4b37ccc5e65..1db2433a4d4 100644
--- a/addons/website/static/src/xml/website.snippets.xml
+++ b/addons/website/static/src/xml/website.snippets.xml
@@ -4,7 +4,7 @@
<!-- Snippet loader -->
<t t-name="website.snippets_button">
<li class="navbar-form js_hide_on_translate" style="margin-top: 6px;">
- <button type="button" data-action="snippet" class="hidden btn btn-primary btn-xs">Insert Blocks</button>
+ <button type="button" data-action="snippet" class="btn btn-primary btn-xs">Insert Blocks</button>
</li>
</t>
<t t-name="website.snippets_style">
@@ -53,13 +53,4 @@
<div class='oe_snippet_manipulator'></div>
</t>
- <!-- snippet objects -->
-
- <div t-name="website.snippets.resize" data-snippet-id='resize'>
- <!-- custom data for the widget -->
- <div class='oe_snippet_thumbnail'>Margin resize</div>
- </div>
-
- <div t-name="website.snippets.colmd" data-snippet-id='colmd' data-selector-vertical-children='.row'></div>
-
</templates>