[*] FO : mobile template - states management
Put "p" and "div" in the same selector
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user