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.
This commit is contained in:
Rajesh K Ilango
2019-07-26 19:06:52 -07:00
parent 8577c1c845
commit 4a48468729
+8
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',