Local login prompt bug fix
authorOlga Brani <olgabrani@grnet.gr>
Thu, 13 Dec 2012 09:38:59 +0000 (11:38 +0200)
committerOlga Brani <olgabrani@grnet.gr>
Thu, 13 Dec 2012 09:38:59 +0000 (11:38 +0200)
snf-astakos-app/astakos/im/templates/im/auth/local_login_prompt.html

index 5c7e279..9115293 100644 (file)
         e.preventDefault();
         $("div.form").slideToggle();
       });
-      $('div.form .form-row').each(function() {
-               if ( $(this).hasClass('with-errors') ){
-                       $('div.form').show();   
-               }
-         });
+       if ( ( $('div.form .form-row.with-errors').length > 0)  || ( $('ul.errorlist').length > 0 ) )  {
+               $("div.form").show();
+       }
+               
     })
   </script>