Browse Source

[FIX] report_qweb_element_page_visibility: Correct page visibility comparision

14.0-report-py3o-pr-506
Ioan Galan 5 years ago
committed by newtratip
parent
commit
7f44fddda4
  1. 8
      report_qweb_element_page_visibility/views/layouts.xml

8
report_qweb_element_page_visibility/views/layouts.xml

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

Loading…
Cancel
Save