From 43753064284e475ff63d75544f270afdbc35f8a1 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 15 Dec 2011 13:33:05 +0000 Subject: [PATCH] IE8 Bug with form submit --- html/ajax_card.php | 2 +- html/js/anc_script.js | 5 +++-- html/js/card.js | 3 ++- include/ajax_anc_search.php | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/html/ajax_card.php b/html/ajax_card.php index 9d79c9380..88e830b8f 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -147,7 +147,7 @@ case 'dc': if ($can_modify==1) { - $html.='
'; + $html.=''; $html.=dossier::hidden(); $html.=HtmlInput::hidden('f_id',$f->id); $html.=HtmlInput::hidden('ctl',$ctl); diff --git a/html/js/anc_script.js b/html/js/anc_script.js index 6e7f62908..3e0ac62ec 100644 --- a/html/js/anc_script.js +++ b/html/js/anc_script.js @@ -214,7 +214,8 @@ function search_ca (p_dossier,p_target,p_source) function search_anc_form(obj) { var qs="op=resultancsearch&ctl=searchanc&"; - qs+=obj.serialize(false); + var name=obj.id; + qs+=$(name).serialize(false); waiting_box(); var action=new Ajax.Request ( 'ajax_misc.php', { @@ -354,4 +355,4 @@ function filter_anc(obj,queryString) var pa_id=obj.plan_ctl; queryString=queryString+"&pa_id="+pa_id; return queryString; -} \ No newline at end of file +} diff --git a/html/js/card.js b/html/js/card.js index 66c0387f1..fe98a155d 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -634,7 +634,8 @@ function removeCardAttribut(ad_id,gDossier,table_id,row) function update_card(obj) { try { - var qs=obj.serialize()+'&op=upc'; + var name=obj.id; + var qs=Form.serialize(name)+'&op=upc'; var action=new Ajax.Request ( 'ajax_card.php', { method:'get', diff --git a/include/ajax_anc_search.php b/include/ajax_anc_search.php index 7913630cb..41d07cfe2 100644 --- a/include/ajax_anc_search.php +++ b/include/ajax_anc_search.php @@ -41,7 +41,7 @@ require_once('function_javascript.php'); echo HtmlInput::title_box("Recherche activité", $ctl); //------------- FORM ---------------------------------- -echo ''; +echo ''; echo ''._('Recherche').':'; $texte=new IText('plabel');