Skip to content
Extraits de code Groupes Projets
Valider 9416acc6 rédigé par renato's avatar renato
Parcourir les fichiers

verifForm adjust width of hidden fields too (Fil)

and is called on any ajax request
parent 4d13f45d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -162,9 +162,13 @@ function verifForm(racine) { ...@@ -162,9 +162,13 @@ function verifForm(racine) {
.each(function(){ .each(function(){
var jField = $(this); var jField = $(this);
var w = jField.width(); var w = jField.width();
w -= (parseInt(jField.css("borderLeftWidth"))+parseInt(jField.css("borderRightWidth"))+ if(!w) {
parseInt(jField.css("paddingLeft"))+parseInt(jField.css("paddingRight"))); jField.width("95%");
jField.width(w+"px"); } else {
w -= (parseInt(jField.css("borderLeftWidth"))+parseInt(jField.css("borderRightWidth"))+
parseInt(jField.css("paddingLeft"))+parseInt(jField.css("paddingRight")));
jField.width(w+"px");
}
}); });
} }
...@@ -239,8 +243,8 @@ function AjaxSqueezeNode(trig, noeud, f) ...@@ -239,8 +243,8 @@ function AjaxSqueezeNode(trig, noeud, f)
var u = ''; var u = '';
// retour std si pas precise: affecter ce noeud avec ce retour // retour std si pas precise: affecter ce noeud avec ce retour
if (!f) callback = function(r) { noeud.innerHTML = r; triggerAjaxLoad(noeud);} if (!f) callback = function(r) { noeud.innerHTML = r; verifForm(noeud); triggerAjaxLoad(noeud);}
else callback = function(r) { f(r); triggerAjaxLoad(noeud);} else callback = function(r) { f(r); verifForm(noeud); triggerAjaxLoad(noeud);}
if (typeof(trig) == 'string') { if (typeof(trig) == 'string') {
i = trig.split('?'); i = trig.split('?');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter