2
0
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:
Laurent Destailleur
2010-08-21 15:30:17 +00:00
parent 7ee685640b
commit 1b9ee9c597
11 changed files with 769 additions and 750 deletions

View File

@@ -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;
}
}