diff --git a/pandora_console/general/login_required.php b/pandora_console/general/login_required.php
index 7657cb9f4d..d7151391a7 100644
--- a/pandora_console/general/login_required.php
+++ b/pandora_console/general/login_required.php
@@ -118,6 +118,9 @@ echo '
';
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 '
';
+ echo '';
+ 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 '
';
echo '';
echo __("All fields required");
echo '
';
@@ -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')
+ });
+
});
/* ]]> */