From 1d770fc77db1f0b34d49b54b16413bb2bb0e5d64 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Wed, 7 Oct 2015 14:26:14 -0400 Subject: Partial fix for #5181 P2 entries now drag/dropable --- src/usr/local/www/vpn_ipsec.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/usr/local/www/vpn_ipsec.php') diff --git a/src/usr/local/www/vpn_ipsec.php b/src/usr/local/www/vpn_ipsec.php index 68eba6a..520e0b0 100644 --- a/src/usr/local/www/vpn_ipsec.php +++ b/src/usr/local/www/vpn_ipsec.php @@ -305,7 +305,7 @@ display_top_tabs($tab_array); - + - + ">edit @@ -437,7 +437,7 @@ display_top_tabs($tab_array);   - + $ph2ent): ?> - + ">edit ">copy @@ -582,5 +582,15 @@ function show_phase2(id, buttonid) { var visible = id + '-visible'; document.getElementById(visible).value = "1"; } + +events.push(function() { + // Make rules sortable + $('table tbody.p2-entries').sortable({ + cursor: 'grabbing', + update: function(event, ui) { + $('#order-store').removeAttr('disabled'); + } + }); +}); //]]> -- cgit v1.1