Added autosize message

This commit is contained in:
bergware
2023-04-18 11:01:46 +02:00
parent 34b7b01e4a
commit 021ed95419
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ function setFloor() {
var base = Math.pow(1000,Math.floor(Math.log(size)/Math.log(1000)));
if (val.replace(/[A-Z.,\s]/gi,'')==0) {
size = (Math.floor(size/base) * base).toString();
$.cookie('autosize-<?=$tag?>','1');
$.cookie('autosize-<?=$tag?>','1',{expires:365});
} else {
size = val;
$.removeCookie('autosize-<?=$tag?>');

View File

@@ -454,7 +454,7 @@ function setFloor(val) {
var base = Math.pow(1000,Math.floor(Math.log(size)/Math.log(1000)));
if (val.replace(/[A-Z.,\s]/gi,'')==0) {
size = (Math.floor(size/base) * base).toString();
$.cookie('autosize-'+$('#shareName').val(),'1');
$.cookie('autosize-'+$('#shareName').val(),'1',{expires:365});
} else {
size = val;
$.removeCookie('autosize-'+$('#shareName').val());