summaryrefslogtreecommitdiff
path: root/odoo/addons/test_new_api/static
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-03-14 16:21:14 +0100
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commit1c1c0897e8eca607c7f1b96b68a06c026c543e6a (patch)
tree1f667224be28146cbcbe602892094046052ea93b /odoo/addons/test_new_api/static
parent220e49f9d66f2e2ea875143c2da0c20919ec0b3e (diff)
[REF] *: BS4, adapt dropdowns and carets
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
Diffstat (limited to 'odoo/addons/test_new_api/static')
-rw-r--r--odoo/addons/test_new_api/static/tests/x2many.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/odoo/addons/test_new_api/static/tests/x2many.js b/odoo/addons/test_new_api/static/tests/x2many.js
index a4cb4be9d88..ecdab8317de 100644
--- a/odoo/addons/test_new_api/static/tests/x2many.js
+++ b/odoo/addons/test_new_api/static/tests/x2many.js
@@ -335,7 +335,7 @@ odoo.define('web.test.x2many', function (require) {
edition: 'community'
}, {
content: "switch to the second form view to test one2many with editable list (toggle menu dropdown)",
- trigger: 'nav .o_menu_sections li a:containsExact(Discussions)',
+ trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
edition: 'enterprise'
}, {
@@ -344,7 +344,7 @@ odoo.define('web.test.x2many', function (require) {
edition: 'community'
}, {
content: "switch to the second form view to test one2many with editable list (open submenu)",
- trigger: 'nav .o_menu_sections ul li a:contains(Discussions 2)',
+ trigger: 'nav .o_menu_sections .dropdown-item:contains(Discussions 2)',
edition: 'enterprise'
}, {
content: "select previous created record",
@@ -463,7 +463,7 @@ odoo.define('web.test.x2many', function (require) {
edition: 'community'
}, {
content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)",
- trigger: 'nav .o_menu_sections li a:containsExact(Discussions)',
+ trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
edition: 'enterprise'
}, {
@@ -472,7 +472,7 @@ odoo.define('web.test.x2many', function (require) {
edition: 'community'
}, {
content: "switch to the thied form view to test onchange changing one2many (open submenu)",
- trigger: 'nav .o_menu_sections ul li a:contains(Discussions 3)',
+ trigger: 'nav .o_menu_sections .dropdown-item:contains(Discussions 3)',
edition: 'enterprise'
}, {
content: "wait web client",