Skip to content

Commit

Permalink
Merge PR #882 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by HviorForgeFlow
  • Loading branch information
OCA-git-bot committed Oct 22, 2024
2 parents 25cf85a + c03e250 commit fb8ee7a
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.visibility = (vars.sitepage == vars.frompage) ? "hidden" : "visible";
elt.style.display = (vars.sitepage === vars.frompage) ? "none" : "inherit";
},
'not-last-page': function (elt) {
elt.style.visibility = (vars.sitepage == vars.sitepages) ? "hidden" : "visible";
elt.style.display = (vars.sitepage === vars.sitepages) ? "none" : "inherit";
},
'first-page': function (elt) {
elt.style.visibility = (vars.sitepage == vars.frompage) ? "visible" : "hidden";
elt.style.display = (vars.sitepage === vars.frompage) ? "inherit" : "none";
},
'last-page': function (elt) {
elt.style.visibility = (vars.sitepage == vars.sitepages) ? "visible" : "hidden";
elt.style.display = (vars.sitepage === vars.sitepages) ? "inherit" : "none";
},
'single-page': function (elt) {
elt.style.display = (vars.sitepages === 1) ? "inherit" : "none";
Expand Down

0 comments on commit fb8ee7a

Please sign in to comment.