[-] BO : #PSTEST-614 - Fix bug with not selectable carrier in the BO order creation

This commit is contained in:
mDeflotte committed 2012-02-01 08:30:24 +00:00
1 parent 2299e7153f
commit e88672e768
1 file changed
+3 -3
@@ -434,7 +434,7 @@
if (carriers.length > 0) if (carriers.length > 0)
{ {
$.each(carriers, function() { $.each(carriers, function() {
html += '<option value="'+this.id_carrier+'">'+this.name+' - '+this.delay+'</option>'; html += '<option value="'+this.id_carrier+'" ' + ((parseInt($('#id_carrier').val()) == this.id_carrier) ? 'selected="selected"' : '') + '>'+this.name+' - '+this.delay+'</option>';
}); });
$('#carrier_form').show(); $('#carrier_form').show();
$('#id_carrier').html(html); $('#id_carrier').html(html);
@@ -714,7 +714,7 @@
}, },
success : function(res) success : function(res)
{ {
displaySummary(res); displaySummary(res);
} }
}); });
} }
@@ -986,7 +986,7 @@
<div id="carrier_form"> <div id="carrier_form">
<div> <div>
<p> <p>
<label>{l s='Carriers:'} </label> <label>{l s='Carrier:'} </label>
<select name="id_carrier" id="id_carrier"> <select name="id_carrier" id="id_carrier">
</select> </select>
</p> </p>