estilos popup

This commit is contained in:
fbsanchez 2018-10-25 15:42:20 +02:00
parent 85051924b7
commit 8619adbf4c

View File

@ -65,39 +65,12 @@ $(document).ready (function () {
jQuery.post ("ajax.php", jQuery.post ("ajax.php",
{ {
"page": "include/ajax/config.ajax", "page": "operation/system_alert"},
"token_name": 'visual_animation' function (data, status) {
}, $("#alert_messages").toggle();
function (data, status) { $("#alert_messages").empty ().append (data);
$("#alert_messages").css('opacity', 1);
if(data){
jQuery.post ("ajax.php",
{
"page": "operation/system_alert"},
function (data, status) {
$("#alert_messages").toggle();
$("#alert_messages").empty ().append (data);
$("#alert_messages").css('opacity', 1);
},
"html"
);
return false;
} else {
jQuery.post ("ajax.php",
{
"page": "operation/system_alert"},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
.append (data)
.show ()
.css('opacity', 1);
},
"html"
);
return false;
}
}, },
"html" "html"
); );
@ -110,44 +83,17 @@ $(document).ready (function () {
jQuery.post ("ajax.php", jQuery.post ("ajax.php",
{ {
"page": "include/ajax/config.ajax", "page": "general/alert_enterprise",
"token_name": 'visual_animation' "message": elem
}, },
function (data, status) { function (data, status) {
if(data){ $("#alert_messages").toggle();
jQuery.post ("ajax.php", $("#alert_messages").empty ().append (data);
{ $("#alert_messages").css('opacity', 1);
"page": "general/alert_enterprise",
"message": elem
},
function (data, status) {
$("#alert_messages").toggle();
$("#alert_messages").empty ().append (data);
$("#alert_messages").css('opacity', 1);
},
"html"
);
return false;
} else {
jQuery.post ("ajax.php",
{
"page": "general/alert_enterprise",
"message": elem
},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
.append (data)
.show ()
.css('opacity', 1);
},
"html"
);
return false;
}
}, },
"html" "html"
); );
return false;
}); });
// Creacion de ventana modal y botones // Creacion de ventana modal y botones
@ -158,63 +104,37 @@ $(document).ready (function () {
jQuery.post ("ajax.php", jQuery.post ("ajax.php",
{ {
"page": "include/ajax/config.ajax", "page": "general/alert_enterprise",
"token_name": 'visual_animation' "message": elem
}, },
function (data, status) { function (data, status) {
if(data){ $("#alert_messages").toggle();
jQuery.post ("ajax.php", $("#alert_messages").empty ().append (data);
{ $("#alert_messages").css('opacity', 1);
"page": "general/alert_enterprise",
"message": elem
},
function (data, status) {
$("#alert_messages").toggle();
$("#alert_messages").empty ().append (data);
$("#alert_messages").css('opacity', 1);
},
"html"
);
return false;
} else {
jQuery.post ("ajax.php",
{
"page": "general/alert_enterprise",
"message": elem
},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
.append (data)
.show ()
.css('opacity', 1);
},
"html"
);
return false;
}
}, },
"html"); "html"
);
return false;
}); });
$(".publienterprisehide").click (function () { $(".publienterprisehide").click (function () {
var elem = $(this).attr("id");
$('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" ); $('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" );
$("#opacidad").css('opacity', 0.5); $("#opacidad").css('opacity', 0.5);
jQuery.post ("ajax.php", jQuery.post ("ajax.php",
{ {
"page": "general/alert_enterprise", "page": "general/alert_enterprise",
"message": $(this).attr("id") "message": elem
}, },
function (data, status) { function (data, status) {
$("#alert_messages").hide () $("#alert_messages").toggle();
.empty () $("#alert_messages").empty ().append (data);
.append (data) $("#alert_messages").css('opacity', 1);
.show () },
.css('opacity', 1);; "html"
}, );
"html"
);
return false; return false;
}); });