From e7859f705c7128e3af15dbde5438c782065ac874 Mon Sep 17 00:00:00 2001 From: Vincent Chan Date: Wed, 10 Feb 2016 12:37:38 +0100 Subject: Remember previous state of remember login checkbox fixes #22205 --- core/js/login.js | 5 +++++ core/templates/login.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/js/login.js b/core/js/login.js index 33ec868cb23..186b21423f3 100644 --- a/core/js/login.js +++ b/core/js/login.js @@ -21,4 +21,9 @@ OC.Login = _.extend(OC.Login || {}, { }); $(document).ready(function() { $('form[name=login]').submit(OC.Login.onLogin); + + //set previous state of remember login checkbox + if($('label[for="remember_login"]').attr('previously') === 'checked'){ + $('#remember_login').prop('checked', true); + } }); diff --git a/core/templates/login.php b/core/templates/login.php index e87b871c67e..590b035bce3 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -68,7 +68,12 @@ script('core', [
- + +
-- cgit v1.2.3