don't update the page if results per doesn't change

This commit is contained in:
Squidly271 2022-02-25 16:42:07 -05:00
parent 8f04a966a2
commit 14481a8a45
4 changed files with 5 additions and 4 deletions

View File

@ -233,7 +233,7 @@ $(function(){
if ( "<?=$date?>" == "1/01" ) addBannerWarning("<?tr("Happy New Year!")?>",false);
if ( "<?=$date?>" == "12/31" ) addBannerWarning("<?tr("Happy New Year!")?> <i style='float:initial;cursor:initial;' class='fa fa-beer'></i> <?tr("Please Enjoy Responsibly")?>",false);
context.init({preventDoubleContext:false,left:false,above:true,right:false,bottom:true});
context.init({preventDoubleContext:false,left:false,right:false,bottom:true,above:true});
$(".maxPerPage").html(sprintf("<?tr("Results Per Page: %s")?>","<?=$cfg['maxPerPage']?>"));
var opts = [
@ -2624,7 +2624,7 @@ function dockerConvert(dockerID) {
function changeMax(max) {
$("#maxPerPage").html(sprintf("<?tr("Results Per Page: %s")?>",max));
post({action:"changeMaxPerPage",max:max},function(done) {
if (done) {
if (done.status == "updated") {
if ( ! $(".startupButton").hasClass("selectedMenu") ) {
data.currentpage = 1;
changeSortOrder(null,null,null);

View File

@ -1,4 +1,4 @@
8b5cb8df632ca333e027214dea5aa8f9 ./Apps.page
624d25182fc9abc99a6eb5e649f7bc56 ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
@ -18,6 +18,6 @@ a1401a0bed89c182b69f0c7508282c1f ./scripts/pluginInstall.php
e19c8f05c687dcf03ea0ba2ed7099a6e ./scripts/showStatistics.php
4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
3c487730cd1396252c33d7be940ec74c ./skins/Narrow/css.php
67a365609d47d6c0e41cf30b401b3f77 ./skins/Narrow/css.php
e9244df3418ca3e7fa206d9b6e94c6b1 ./skins/Narrow/skin.html
7cbc48b9a57f4bf7bf15690f8f1cf6ce ./skins/Narrow/skin.php

View File

@ -303,6 +303,7 @@ input[type=button][disabled]{background:none;}
.linkButton a{text-decoration:none;color:<?=$supportPopupText?>}
.maxPerPage{float:right;line-height:2rem;cursor:pointer;display:inline-block;color:<?=$donateText?>!important;background: <?=$donateBackground?>;background: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,0.4) 100%),-webkit-linear-gradient(left, lighten(<?=$donateBackground?>, 15%) 0%, <?=$donateBackground?> 50%, lighten(<?=$donateBackground?>, 15%) 100%); background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%),linear-gradient(to right, lighten(#E68321, 15%) 0%, #E68321 50%, lighten(#E68321, 15%) 100%); background-position: 0 0; background-size: 100% 100%; border-radius: 15px; color: #fff; padding: 1px 10px 1px 10px;}
.maxPerPage:hover{text-decoration:none;background-color:<?=$unRaid66color?>;}
.mainArea{position:absolute;left:18.5rem;right:0px;top:2rem;display:block;overflow-x:hidden;min-height:90vh;}
.menuHeader{ font-size:2rem; margin-bottom:1rem;margin-top:1rem;}