diff --git a/assets/js/sccp_manager.js b/assets/js/sccp_manager.js index 70e2473..2c4e67b 100644 --- a/assets/js/sccp_manager.js +++ b/assets/js/sccp_manager.js @@ -309,9 +309,15 @@ $(document).ready(function () { }); $('.lineSelect').change(function (e) { - var type_id = $('#sccp_hw_defaultLine').find(':selected').data('id'); + var line_id = $('#sccp_hw_defaultLine option:selected').val(); $("select.lineid_0 option:selected").prop("selected",false); - $("select.lineid_0 option[value=" + type_id + "]").prop("selected",true); + $("select.lineid_0 option[value=" + line_id + "]").prop("selected",true); + }); + + $('#button0_line').change(function (e) { + var line_id = $('#button0_line option:selected').val(); + $("#sccp_hw_defaultLine option:selected").prop("selected",false); + $("#sccp_hw_defaultLine option[value=" + line_id + "]").prop("selected",true); }); $('.sccp_button_hide').each(function () { diff --git a/views/form.buttons.php b/views/form.buttons.php index e5517e0..15fc7a4 100644 --- a/views/form.buttons.php +++ b/views/form.buttons.php @@ -184,10 +184,10 @@ if (!empty($_REQUEST['ru_id'])) { ?> - '.$data['name'].' / '.$data['label'].''; } ?>