2
0
forked from Wavyzz/dolibarr

Qual: Spelling htdocs/core (#27491)

Highlights:
- initialY in pdf_standard.modules.php was unused
  - remove (otherwise -> initially) (+same in other file)
This commit is contained in:
MDW
2024-01-13 19:48:20 +01:00
committed by GitHub
parent 77432efdee
commit 89004f7e03
323 changed files with 1154 additions and 1152 deletions

View File

@@ -269,7 +269,7 @@ function formatDate(date,format)
{
// alert('formatDate date='+date+' format='+format);
// Force parametres en chaine
// Force parameters en chaine
format=format+"";
var result="";
@@ -337,7 +337,7 @@ function getDateFromFormat(val,format)
{
// alert('getDateFromFormat val='+val+' format='+format);
// Force parametres en chaine
// Force parameters en chaine
val=val+"";
format=format+"";
@@ -561,14 +561,14 @@ function hideMessage(fieldId,message) {
*
* @param string url Url (warning: as any url called in ajax mode, the url called here must not renew the token)
* @param string code Code
* @param string intput Array of complementary actions to do if success
* @param string input Array of complementary actions to do if success
* @param int entity Entity
* @param int strict Strict
* @param int forcereload Force reload
* @param int userid User id
* @param int value Value to set
* @param string token Token
* @retun boolean
* @return boolean
*/
function setConstant(url, code, input, entity, strict, forcereload, userid, token, value) {
var saved_url = url; /* avoid undefined url */
@@ -668,7 +668,7 @@ function setConstant(url, code, input, entity, strict, forcereload, userid, toke
*
* @param {string} url Url (warning: as any url called in ajax mode, the url called here must not renew the token)
* @param {string} code Code
* @param {string} intput Array of complementary actions to do if success
* @param {string} input Array of complementary actions to do if success
* @param {int} entity Entity
* @param {int} strict Strict
* @param {int} forcereload Force reload
@@ -765,7 +765,7 @@ function delConstant(url, code, input, entity, strict, forcereload, userid, toke
* @param string action Action
* @param string url Url
* @param string code Code
* @param string intput Array of complementary actions to do if success
* @param string input Array of complementary actions to do if success
* @param string box Box
* @param int entity Entity
* @param int yesButton yesButton
@@ -884,7 +884,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
}
});
if ( !valid ) {
// remove invalid value, as it didnt match anything
// remove invalid value, as it didn't match anything
$( this ).val( "" );
select.val( "" );
input.data("ui-autocomplete").term = "";
@@ -1265,7 +1265,7 @@ function price2numjs(amount) {
amount = amount.replace(thousand, ''); // Replace of thousand before replace of dec to avoid pb if thousand is .
amount = amount.replace(dec, '.');
//console.log("amount before="+amount+" rouding="+rounding)
//console.log("amount before="+amount+" rounding="+rounding)
var res = Math.round10(amount, - rounding);
// Other solution is
// var res = dolroundjs(amount, rounding)