Feature: add button cancel at identification login wizard. Ticket: #4246

This commit is contained in:
m-lopez-f 2016-12-27 10:29:56 +01:00
parent 876cc6ece6
commit 527de7b0b3
1 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,9 @@ echo '<div id="login_id_dialog" title="' .
echo '<div style="float: right; width: 20%;">';
html_print_submit_button(__("Register"), 'id_dialog_button', false, 'class="ui-button-dialog ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok" style="width:100px;"');
echo '</div>';
echo '<div style="float: right; width: 20%;">';
html_print_button(__("Cancel"), 'cancel', false, '', 'class="ui-button-dialog ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok" style="width:100px;"');
echo '</div>';
echo '<div id="all-required" style="float: right; margin-right: 30px; display: none; color: red;">';
echo __("All fields required");
echo '</div>';
@ -215,6 +218,10 @@ $(document).ready (function () {
$(".ui-widget-overlay").css("opacity", 0.6);
$(".ui-draggable").css("cursor", "inherit");
$("#button-cancel").click (function () {
$("#login_id_dialog" ).dialog('close')
});
});
/* ]]> */