forked from Wavyzz/dolibarr
Qual: Clean code
Perf: Country id+code is now stored into MAIN_INFO_SOCIETE_PAYS instead of only id. This avoid a select to finf country code at each request.
This commit is contained in:
@@ -569,6 +569,17 @@ function getIntegerInString(str,i,minlength,maxlength)
|
||||
}
|
||||
|
||||
|
||||
/*=================================================================
|
||||
Purpose: Clean string to have it url encoded
|
||||
Input: s
|
||||
Author: Laurent Destailleur
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function urlencode(s) {
|
||||
return s.replace(/\+/gi,'%2B');
|
||||
}
|
||||
|
||||
|
||||
/*=================================================================
|
||||
Purpose: Show a popup HTML page.
|
||||
Input: url,title
|
||||
@@ -767,3 +778,5 @@ function uncheckBox(boxId) {
|
||||
elementId.checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user