From: Michael Wiebusch Date: Wed, 18 Feb 2015 17:33:47 +0000 (+0100) Subject: update on the settings form handling X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e46a7fd7fe434423a92ab50cdde2eacd67d0c382;p=coral.git update on the settings form handling --- diff --git a/user_interface/coral_scanner.js b/user_interface/coral_scanner.js index 4f8e810..4823711 100644 --- a/user_interface/coral_scanner.js +++ b/user_interface/coral_scanner.js @@ -25,6 +25,26 @@ $(document).ready(function(){ get_scan_status() }); + + + $(".has_settings_form").submit(function( event ){ + var url = $(this).attr("action"); + event.preventDefault(); + $.ajax({ + url: url, + type: 'post', + dataType: 'text', + data: $(this).serialize(), + success: function(data) { + alert(data); + } + }); + }); + + + + + unfolds($("#show_main_controls"),$("#main_controls_container")); unfolds($("#show_pmt_ro_settings"),$("#pmt_ro_settings_container")); unfolds($("#show_table_control_settings"),$("#table_control_settings_container")); diff --git a/user_interface/has_settings.pm b/user_interface/has_settings.pm index 3fb6e69..908ef5e 100644 --- a/user_interface/has_settings.pm +++ b/user_interface/has_settings.pm @@ -77,7 +77,7 @@ span.dropt:hover span {margin: 20px 0 0 170px; background: #ffffff; z-index:6;} -
+
';