From 8619adbf4c9a69108b8bd67d2113da135976bef2 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 25 Oct 2018 15:42:20 +0200 Subject: [PATCH] estilos popup --- .../include/javascript/jquery.pandora.js | 138 ++++-------------- 1 file changed, 29 insertions(+), 109 deletions(-) diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js index a13ab1fb0f..1acad01411 100644 --- a/pandora_console/include/javascript/jquery.pandora.js +++ b/pandora_console/include/javascript/jquery.pandora.js @@ -65,39 +65,12 @@ $(document).ready (function () { jQuery.post ("ajax.php", { - "page": "include/ajax/config.ajax", - "token_name": 'visual_animation' - }, - function (data, status) { + "page": "operation/system_alert"}, + function (data, status) { + $("#alert_messages").toggle(); + $("#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" ); @@ -107,47 +80,20 @@ $(document).ready (function () { var elem = $(this).attr("id"); $('body').append( "
" ); $("#opacidad").css('opacity', 0.5); - + jQuery.post ("ajax.php", { - "page": "include/ajax/config.ajax", - "token_name": 'visual_animation' + "page": "general/alert_enterprise", + "message": elem }, function (data, status) { - if(data){ - jQuery.post ("ajax.php", - { - "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; - } + $("#alert_messages").toggle(); + $("#alert_messages").empty ().append (data); + $("#alert_messages").css('opacity', 1); }, "html" ); + return false; }); // Creacion de ventana modal y botones @@ -158,63 +104,37 @@ $(document).ready (function () { jQuery.post ("ajax.php", { - "page": "include/ajax/config.ajax", - "token_name": 'visual_animation' + "page": "general/alert_enterprise", + "message": elem }, function (data, status) { - if(data){ - jQuery.post ("ajax.php", - { - "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; - } + $("#alert_messages").toggle(); + $("#alert_messages").empty ().append (data); + $("#alert_messages").css('opacity', 1); }, - "html"); + "html" + ); + return false; }); $(".publienterprisehide").click (function () { + var elem = $(this).attr("id"); $('body').append( "
" ); $("#opacidad").css('opacity', 0.5); + jQuery.post ("ajax.php", { "page": "general/alert_enterprise", - "message": $(this).attr("id") + "message": elem }, function (data, status) { - $("#alert_messages").hide () - .empty () - .append (data) - .show () - .css('opacity', 1);; - }, - "html" - ); + $("#alert_messages").toggle(); + $("#alert_messages").empty ().append (data); + $("#alert_messages").css('opacity', 1); + }, + "html" + ); return false; });