commit d8256d8f3fe60767578018f3a5f4893fad8e8130
parent ffd2345427bfb568c038fa57a1ca647ad980c75f
Author: Sheng <webmaster0115@gmail.com>
Date: Sat, 18 May 2019 21:40:57 +0800
Move down a line
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js
@@ -81,8 +81,6 @@ jQuery(function($){
}
}
- restore_items(fields);
-
function initialize_map(keys, map) {
var i;
@@ -90,7 +88,6 @@ jQuery(function($){
for (i = 0; i < keys.length; i++) {
map[keys[i]] = '';
}
-
}
@@ -677,6 +674,8 @@ jQuery(function($){
}
+ restore_items(fields);
+
initialize_map(fields.concat(['password']), url_form_data);
initialize_map(['bgcolor', 'title'], url_opts_data);