Skip to content

Commit

Permalink
Revert "[IMP] - use display for element visibility"
Browse files Browse the repository at this point in the history
This reverts commit 22378d9.
The cherry pick was wrong
  • Loading branch information
cvinh committed Aug 8, 2023
1 parent 22378d9 commit 74be1eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions report_qweb_element_page_visibility/views/layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@

var operations = {
'not-first-page': function (elt) {
elt.style.display = (vars.sitepage == vars.frompage) ? "hidden" : "visible";
elt.style.visibility = (vars.sitepage == vars.frompage) ? "hidden" : "visible";
},
'not-last-page': function (elt) {
elt.style.display = (vars.sitepage == vars.sitepages) ? "hidden" : "visible";
elt.style.visibility = (vars.sitepage == vars.sitepages) ? "hidden" : "visible";
},
'first-page': function (elt) {
elt.style.display = (vars.sitepage == vars.frompage) ? "visible" : "hidden";
elt.style.visibility = (vars.sitepage == vars.frompage) ? "visible" : "hidden";
},
'last-page': function (elt) {
elt.style.display = (vars.sitepage == vars.sitepages) ? "visible" : "hidden";
elt.style.visibility = (vars.sitepage == vars.sitepages) ? "visible" : "hidden";
},
};
for (var klass in operations) {
Expand Down

0 comments on commit 74be1eb

Please sign in to comment.