mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Qual: Ajax code is simpler and now works with IE6
This commit is contained in:
@@ -585,14 +585,9 @@ function newpopup(url,title) {
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function ac_return(field, item){
|
||||
// on met en place l'expression r<>guli<6C>re
|
||||
var regex = new RegExp('[0123456789]*-idcache', 'i');
|
||||
// on l'applique au contenu
|
||||
var idCache = regex.exec($(item).innerHTML);
|
||||
//on r<>cup<75>re l'id
|
||||
id = idCache[0].replace('-idcache', '');
|
||||
// et on l'affecte au champ cach<63>
|
||||
$(field.name+'_id').value = id;
|
||||
/*alert('id='+field.name+'-'+item.id);*/
|
||||
$(field.name+'_id').value = item.id;
|
||||
/*alert('after='+$(field.name+'_id').value);*/
|
||||
}
|
||||
|
||||
/*=================================================================
|
||||
@@ -601,9 +596,9 @@ function ac_return(field, item){
|
||||
Author: Regis Houssin
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function ac_delay(funct,delay) {
|
||||
// d<EFBFBD>lai exprim<69> en millisecondes avant le d<>clenchement de l'action
|
||||
setTimeout(funct,delay);
|
||||
function ac_delay(funct,delay) {
|
||||
/* delay before action start */
|
||||
setTimeout(funct,delay);
|
||||
}
|
||||
|
||||
/*=================================================================
|
||||
|
||||
Reference in New Issue
Block a user