Browse Source

Fix #942 - New tab settings page not resetting

causefx 7 years ago
parent
commit
ea30b06d6a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      js/functions.js

+ 5 - 2
js/functions.js

@@ -3061,9 +3061,12 @@ function loadAppearance(appearance){
 
 }
 function clearForm(form){
-	$(form+" input[type=text]", form+" input[type=password]").each(function() {
+	$(form+" input[type=text]").each(function() {
         $(this).val('');
-    })
+    });
+    $(form+" input[type=password]").each(function() {
+        $(this).val('');
+    });
 }
 function checkMessage(){
 	var check = (local('get','message')) ? local('get','message') : false;