diff --git a/themes/default/js/tools/statesManagement.js b/themes/default/js/tools/statesManagement.js index 22f19c787..f7e380969 100644 --- a/themes/default/js/tools/statesManagement.js +++ b/themes/default/js/tools/statesManagement.js @@ -41,14 +41,10 @@ function updateState(suffix) $('select#id_state'+(suffix !== undefined ? '_'+suffix : '')).append(''); }); - $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden').slideDown('slow'); - $('div.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden').slideDown('slow'); + $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+':hidden, div.id_state'+(suffix !== undefined ? '_'+suffix : '')).slideDown('slow'); } else - { - $('div.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide(); - $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide(); - } + $('p.id_state'+(suffix !== undefined ? '_'+suffix : '')+', div.id_state'+(suffix !== undefined ? '_'+suffix : '')).hide(); } function updateNeedIDNumber(suffix)