From: arno Date: Sat, 25 Jul 2009 12:59:44 +0000 (+0200) Subject: improves behaviour after unauthorized server reply X-Git-Tag: v0.1~7 X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=commitdiff_plain;h=f91e6abb7675a2f526a444b4558800e6d76c2d8d improves behaviour after unauthorized server reply --- diff --git a/inc/i10n/en/syp.php b/inc/i10n/en/syp.php index ffaf07a..55e66bb 100644 --- a/inc/i10n/en/syp.php +++ b/inc/i10n/en/syp.php @@ -165,6 +165,9 @@ "Delete item" => "", + "You need to have cookies enabled to administrate SYP" + => "", + "password" => "", diff --git a/inc/i10n/fr/syp.php b/inc/i10n/fr/syp.php index 1b7031a..9b1f815 100644 --- a/inc/i10n/fr/syp.php +++ b/inc/i10n/fr/syp.php @@ -271,6 +271,11 @@ "Supprimer la fiche" , + "You need to have cookies enabled to administrate SYP" + => + "Vous devez activer les cookies pour pouvoir administrer SYP" + , + "password" => "mot de passe" diff --git a/inc/templates_admin.php b/inc/templates_admin.php index ce7e3b4..b02e5a8 100644 --- a/inc/templates_admin.php +++ b/inc/templates_admin.php @@ -148,6 +148,7 @@ if (!$usrtblexists || !$itemstblexists) {
+ diff --git a/js/admin.js b/js/admin.js index e0a27ea..02c88e3 100644 --- a/js/admin.js +++ b/js/admin.js @@ -406,7 +406,9 @@ var FeatureMgr = { switch (xml.documentElement.getAttribute("reason")) { case "unauthorized": $("#login_area").show(); + $("#cookie_warning").show(); this.reset(); + Admin.cancelCurrentFeature(); Admin.reset(); break; case "server": diff --git a/media/admin.css b/media/admin.css index c381513..fdef832 100644 --- a/media/admin.css +++ b/media/admin.css @@ -145,6 +145,10 @@ html>/**/body #img { /* hide from ie7 */ background-color: white; } +#cookie_warning { + display: none; +} + #password { display: block; width: 100%;