improves behaviour after unauthorized server reply
authorarno <arenevier@fdn.fr>
Sat, 25 Jul 2009 12:59:44 +0000 (14:59 +0200)
committerarno <arenevier@fdn.fr>
Sat, 25 Jul 2009 14:23:39 +0000 (16:23 +0200)
inc/i10n/en/syp.php
inc/i10n/fr/syp.php
inc/templates_admin.php
js/admin.js
media/admin.css

index ffaf07a54b415c1187396071dea4930484c8bf4b..55e66bbc186c83e0b23f2f822de05e7a53cfdfaa 100644 (file)
         "Delete item"
           => "",
 
+        "You need to have cookies enabled to administrate SYP"
+          => "",
+
         "password"
           => "",
 
index 1b7031ab8994a89cc3a9ada10511e8a4671dd0b2..9b1f815d304f3ccff88efeb725b18cb0d7c7039b 100644 (file)
         "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"
index ce7e3b4230069f83bcfb124307bdae92a3210105..b02e5a800ab146d61f4686c59624af8035d8930b 100644 (file)
@@ -148,6 +148,7 @@ if (!$usrtblexists || !$itemstblexists) {
      <div id="login_padding"></div>
      <div id="login_content">
         <form id="login_form" method="post">
+        <div id="cookie_warning" class="center warn"><?php ptrans('You need to have cookies enabled to administrate SYP')?></div>
             <table>
                 <tr>
                     <td><label for="password"><?php ptrans('password')?></label></td>
index e0a27ea58570c14b946ff4a84f6f7e85659f5e7d..02c88e3cb5d0d557815b4f9c49bff6b1701d84e8 100644 (file)
@@ -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":
index c3815136684d4ff15e906ae180537d7fed274439..fdef832fe5749fb39ed8666eb6070d86b4f19d56 100644 (file)
@@ -145,6 +145,10 @@ html>/**/body #img { /* hide from ie7 */
     background-color: white;
 }
 
+#cookie_warning {
+    display: none;
+}
+
 #password {
     display: block;
     width: 100%;