Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/views/js/contacts_add.php | ||
---|---|---|
?>
|
||
|
||
var country_code_dropdown = $('.country_code');
|
||
var mail_redirection_checkbox = $('.mail_redirection');
|
||
|
||
$('#type_dropdown').live('change', function () {
|
||
var type = parseInt($(this).val(), 10);
|
||
... | ... | |
{
|
||
case <?php echo Contact_Model::TYPE_PHONE ?>:
|
||
country_code_dropdown.show();
|
||
mail_redirection_checkbox.hide();
|
||
$("#value").addClass('number');
|
||
$("#value").attr('minlength',9);
|
||
break;
|
||
case <?php echo Contact_Model::TYPE_EMAIL ?>:
|
||
country_code_dropdown.hide();
|
||
mail_redirection_checkbox.show();
|
||
$("#value").addClass('email');
|
||
break;
|
||
default:
|
||
country_code_dropdown.hide();
|
||
mail_redirection_checkbox.hide();
|
||
}
|
||
});
|
||
|
Také k dispozici: Unified diff
Release 1.1.0