Merge pull request #79 from PrestaEdit/PSCFV-3877

[-] FO : mobile template - states management
This commit is contained in:
Vincent Augagneur
2012-12-12 03:34:09 -08:00
+2 -3
View File
@@ -41,11 +41,10 @@ function updateState(suffix)
$('select#id_state'+(suffix !== undefined ? '_'+suffix : '')).append('<option value="'+item.id+'"'+ (idSelectedCountry === item.id ? ' selected="selected"' : '') + '>'+item.name+'</option>');
});
$('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden').slideDown('slow');
$('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden, div.id_state'+(suffix !== undefined ? '_'+suffix : '')).slideDown('slow');
}
else
$('p.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide();
$('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+', div.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide();
}
function updateNeedIDNumber(suffix)