Change to fill form values from URL parameters.

This is useful when there is login failure and the form is either empty
or with values from previous attempt.
pull/75/head
Rajesh K Ilango 2019-07-26 19:06:52 -07:00
parent 8577c1c845
commit 4a48468729
1 changed files with 8 additions and 0 deletions

View File

@ -662,6 +662,14 @@ jQuery(function($){
data._origin = event_origin;
}
for (var datum in data) {
var value = data[datum];
if (value){
window.localStorage.setItem(datum, value);
}
}
restore_items(fields);
$.ajax({
url: url,
type: 'post',