From 6983796eebc1478f597106a983513f9fe77d83d0 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 28 Jan 2013 10:05:08 +0000 Subject: [PATCH] =?UTF-8?q?Check=20qu'un=20access=20type=20est=20s=C3=A9le?= =?UTF-8?q?ctionn=C3=A9=20avant=20le=20submit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/admin/ip_main.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bureau/admin/ip_main.php b/bureau/admin/ip_main.php index b12c5365..3f0c32ae 100644 --- a/bureau/admin/ip_main.php +++ b/bureau/admin/ip_main.php @@ -131,7 +131,7 @@ $lac = $authip->list_affected();   - " /> + " onclick='return check_accesstype_selected();' /> @@ -206,5 +206,14 @@ foreach($list_ip as $i) { $("#edit_ip").val(iph); } +function check_accesstype_selected() { + if ( $('input[name=s_protocol]:radio:checked').val() ) { + // there is a value + return true; + } + alert(""); + return false; +} +