From 1780a5ea7b435d6b70acfa76df079e98a7170ea4 Mon Sep 17 00:00:00 2001 From: Jonathan Danse Date: Wed, 12 Dec 2012 12:30:10 +0100 Subject: [PATCH] [*] FO : mobile template - states management Put "p" and "div" in the same selector --- themes/default/js/tools/statesManagement.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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)