Qual: Ajax code is simpler and now works with IE6

This commit is contained in:
Laurent Destailleur
2009-08-27 23:31:50 +00:00
parent c296965865
commit 756ca4499a
9 changed files with 39 additions and 35 deletions

View File

@@ -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);
}
/*=================================================================