Browse Source

[FIX] report_qweb_element_page_visibility: Correct page visibility comparision

pull/289/head
Ioan Galan 5 years ago
committed by Saran
parent
commit
a03195ee3f
  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 = {
'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) {
elt.style.visibility = (vars.page === vars.topage) ? "hidden" : "visible";
elt.style.visibility = (vars.sitepage === vars.sitepages) ? "hidden" : "visible";
},
'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) {
elt.style.visibility = (vars.page === vars.topage) ? "visible" : "hidden";
elt.style.visibility = (vars.sitepage === vars.sitepages) ? "visible" : "hidden";
},
};
for (var klass in operations) {

Loading…
Cancel
Save