Merge PR #737 into 15.0

Signed-off-by HviorForgeFlow
pull/748/head
OCA-git-bot 2023-03-22 08:44:05 +00:00
commit 5bd06fc1f6
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@
'last-page': function (elt) {
elt.style.visibility = (vars.sitepage == vars.sitepages) ? "visible" : "hidden";
},
'single-page': function (elt) {
elt.style.display = (vars.sitepages === 1) ? "inherit" : "none";
},
'multi-page': function (elt) {
elt.style.display = (vars.sitepages > 1) ? "inherit" : "none";
},
};
for (var klass in operations) {
var y = document.getElementsByClassName(klass);