[*] FO : mobile template - states management

Put "p" and "div" in the same selector
This commit is contained in:
Jonathan Danse
2012-12-12 12:30:10 +01:00
parent 7a91409023
commit 1780a5ea7b
+2 -6
View File
@@ -41,14 +41,10 @@ function updateState(suffix)
$('select#id_state'+(suffix !== undefined ? '_'+suffix : '')).append('<option value="'+item.id+'"'+ (idSelectedCountry == item.id ? ' selected="selected"' : '') + '>'+item.name+'</option>'); $('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');
$('div.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden').slideDown('slow');
} }
else else
{ $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+', div.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide();
$('div.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide();
$('p.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide();
}
} }
function updateNeedIDNumber(suffix) function updateNeedIDNumber(suffix)