mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
module web_hideleftmenu added
This commit is contained in:
6
web_hideleftmenu/static/src/css/lib.css
Normal file
6
web_hideleftmenu/static/src/css/lib.css
Normal file
@@ -0,0 +1,6 @@
|
||||
.oe_hidemenu {
|
||||
background-size: auto;
|
||||
}
|
||||
|
||||
.oe_letters {
|
||||
}
|
||||
10
web_hideleftmenu/static/src/js/lib.js
Normal file
10
web_hideleftmenu/static/src/js/lib.js
Normal file
@@ -0,0 +1,10 @@
|
||||
openerp.web_hideleftmenu = function (instance) {
|
||||
instance.web.WebClient.include({
|
||||
events: {
|
||||
'click .oe_hidemenu': 'hideleftmenu',
|
||||
},
|
||||
hideleftmenu: function(ev) {
|
||||
this.$(".oe_leftbar").toggle("slow");
|
||||
},
|
||||
});
|
||||
};
|
||||
9
web_hideleftmenu/static/src/xml/lib.xml
Normal file
9
web_hideleftmenu/static/src/xml/lib.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<template>
|
||||
<t t-jquery="ul.dropdown-menu li:last" t-operation="after">
|
||||
<li class="oe_hidemenu">
|
||||
<a href="#">Hide/Show Menu</a>
|
||||
</li>
|
||||
</t>
|
||||
|
||||
</template>
|
||||
Reference in New Issue
Block a user