From 80572c7138ead25f993c3eec47788da8fb51b0f8 Mon Sep 17 00:00:00 2001 From: Xin Zhang-Eze office Date: Thu, 20 Feb 2014 17:10:14 -0500 Subject: [PATCH] remove potential bugs in demo.html #71 The line wizard.modal.find(':input').val('') will remove radio and hidden, because they are attribute of input. While the value of option of select element will survived. Could we change the example in demo.html? I believe a lot of people like me know little about js will use the examples in demo.html directly or make changes on these examples while don't know what it exactly it is dong. --- demo/demo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/demo.html b/demo/demo.html index c8c1119..861bf43 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -378,7 +378,7 @@

Agent Setup

}); wizard.on("reset", function() { - wizard.modal.find(':input').val('').removeAttr('disabled'); + wizard.modal.find(':input').removeAttr('disabled'); wizard.modal.find('.form-group').removeClass('has-error').removeClass('has-succes'); wizard.modal.find('#fqdn').data('is-valid', 0).data('lookup', 0); });