From b283f9c3b2d16e6c29eaf5240607f21c580ce8d2 Mon Sep 17 00:00:00 2001 From: Falko Timme <ft@falkotimme.com> Date: Wed, 30 Apr 2014 04:26:25 -0400 Subject: [PATCH] - Re-enabled "Remember Password"- function on login screen. --- interface/web/themes/default/templates/main.tpl.htm | 2 +- interface/web/themes/blue/templates/main.tpl.htm | 2 +- interface/web/login/templates/index.htm | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/interface/web/login/templates/index.htm b/interface/web/login/templates/index.htm index eaf9e08..3fbd278 100644 --- a/interface/web/login/templates/index.htm +++ b/interface/web/login/templates/index.htm @@ -39,4 +39,7 @@ </div> </div> -</div> \ No newline at end of file +</div> +<script language="JavaScript" type="text/javascript"> + $('#username').closest('form').attr('autocomplete','on'); +</script> \ No newline at end of file diff --git a/interface/web/themes/blue/templates/main.tpl.htm b/interface/web/themes/blue/templates/main.tpl.htm index 8d6ffde..70c4f26 100644 --- a/interface/web/themes/blue/templates/main.tpl.htm +++ b/interface/web/themes/blue/templates/main.tpl.htm @@ -22,7 +22,7 @@ jQuery(document).ready(function() { loadInitContent(); - $('form').attr('autocomplete','off'); + $('form').not('#dummy_login_form').attr('autocomplete','off'); $("#pageForm").submit(function(e){ //Prevent form submit: e.preventDefault() in lists diff --git a/interface/web/themes/default/templates/main.tpl.htm b/interface/web/themes/default/templates/main.tpl.htm index dee8117..fd38222 100644 --- a/interface/web/themes/default/templates/main.tpl.htm +++ b/interface/web/themes/default/templates/main.tpl.htm @@ -22,7 +22,7 @@ jQuery(document).ready(function() { loadInitContent(); - $('form').attr('autocomplete','off'); + $('form').not('#dummy_login_form').attr('autocomplete','off'); $("#pageForm").submit(function(e){ //Prevent form submit: e.preventDefault() in lists -- Gitblit v1.9.1