commit 013c925ec4439ad5edffa8849042d7d2c290cd84 parent 8577c1c845b97b09428cbf503118c3eb627a8824 Author: Shengdun Hua <webmaster0115@gmail.com> Date: Sat, 10 Aug 2019 08:15:35 +0800 Merge pull request #75 from rilango/master Change to fill form values from URL parameters. Diffstat:
M | webssh/static/js/main.js | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js @@ -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',