Add modal window for main header help icon #Noticket

This commit is contained in:
enriquecd 2016-11-18 17:31:04 +01:00
parent 86187d3f7f
commit 31cb344f1e
2 changed files with 17 additions and 1 deletions

View File

@ -273,7 +273,7 @@ config_check();
$table->data[0][3] = $maintenance_img; $table->data[0][3] = $maintenance_img;
// Main help icon // Main help icon
$table->data[0][4] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png'); $table->data[0][4] = '<a href="#" class="modalpopup" id="helpmodal"><img src="images/header_help.png""></a>';
// Logout // Logout
$table->data[0][5] = '<a class="white" href="' . ui_get_full_url('index.php?bye=bye') . '">'; $table->data[0][5] = '<a class="white" href="' . ui_get_full_url('index.php?bye=bye') . '">';

View File

@ -72,6 +72,22 @@ $(document).ready (function () {
); );
return false; return false;
}); });
$("a.modalpopup").click (function () {
$('body').append( "<div id='opacidad' style='position:fixed;background:black;opacity:0.6;z-index:1'></div>" );
jQuery.get ("ajax.php",
{"page": "general/alert_enterprise",
"message":$(this).attr("id")},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
.append (data)
.show ();
},
"html"
);
return false;
});
// Creacion de ventana modal y botones // Creacion de ventana modal y botones