From c5325e0925a80dd02e45f2f5107f0a31c83f9027 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov <fox@bah.org.ru> Date: Mon, 13 Sep 2010 15:02:50 +0400 Subject: [PATCH] digest: support exception error box --- digest.css | 4 +++- digest.js | 1 - digest.php | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/digest.css b/digest.css index d96cc4968..70728c70e 100644 --- a/digest.css +++ b/digest.css @@ -1,6 +1,6 @@ body { background : #f0f0f0; - color : gray; + color : black; font-family : sans-serif; font-size : 12px; } @@ -28,6 +28,7 @@ a:hover { font-family : "Lucida Grande", "Segoe UI", Tahoma, Arial, sans-serif; margin-left : 1em; margin-right : 1em; + color : gray; } #header div.links { @@ -50,6 +51,7 @@ a:hover { #footer { font-size : 12px; text-align : center; + color : gray; } /*#content h1 { diff --git a/digest.js b/digest.js index b788535fc..0b5a3f66a 100644 --- a/digest.js +++ b/digest.js @@ -579,7 +579,6 @@ function parse_headlines(transport, replace, no_effects) { function init() { try { - new Ajax.Request("backend.php", { parameters: "backend.php?op=rpc&subop=digest-init", onComplete: function(transport) { diff --git a/digest.php b/digest.php index 43eb04121..c2ff2a330 100644 --- a/digest.php +++ b/digest.php @@ -26,6 +26,7 @@ <head> <title>Tiny Tiny RSS</title> <link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/> + <link rel="stylesheet" type="text/css" href="infobox.css?<?php echo $dt_add ?>"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> @@ -64,6 +65,17 @@ </div> </div> + <div id="dialog_overlay" style="display : none"> </div> + + <div id="errorBoxShadow" style="display : none"> + <div id="errorBox"> + <div id="xebTitle"><?php echo __('Fatal Exception') ?></div><div id="xebContent"> </div> + <div id="xebBtn" align='center'> + <button onclick="closeErrorBox()"><?php echo __('Close this window') ?></button> + </div> + </div> + </div> + <div id="header"> <div class="links"> -- GitLab