X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.byteLimit.js;h=c75246c0f65a1ecaadb92c0ed7f7e547a484e1a1;hb=47f66d4dc0ab8cbdc9a2d24fa75c15b00995ffca;hp=567bec8ad600cb68bdb86bfb2d1f53d1fce9b193;hpb=9aba586d3b758719d9aa08b236a9de93956b6a96;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.byteLimit.js b/resources/src/jquery/jquery.byteLimit.js index 567bec8ad6..c75246c0f6 100644 --- a/resources/src/jquery/jquery.byteLimit.js +++ b/resources/src/jquery/jquery.byteLimit.js @@ -87,7 +87,7 @@ // Chop off characters from the end of the "inserted content" string // until the limit is statisfied. if ( fn ) { - // stop, when there is nothing to slice - bug 41450 + // stop, when there is nothing to slice - T43450 while ( $.byteLength( fn( inpParts.join( '' ) ) ) > byteLimit && inpParts[ 1 ].length > 0 ) { inpParts[ 1 ] = inpParts[ 1 ].slice( 0, -1 ); } @@ -225,7 +225,7 @@ } // Always adjust prevSafeVal to reflect the input value. Not doing this could cause // trimByteLength to compare the new value to an empty string instead of the - // old value, resulting in trimming always from the end (bug 40850). + // old value, resulting in trimming always from the end (T42850). prevSafeVal = res.newVal; } ); } );