From b41b92213af1e376e70099e0fffe875b01ff8d08 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 24 Apr 2014 19:19:50 +0200 Subject: Dialog demo: Update modal form demo - Removes an invalid jquery.ui.button.js reference (button.js is loaded) - Updates the email regex to use the one from the HTML5 spec - Refactors the code to add the user on both button click and form submit - Reset the form to its original state on submit - Initialize the form with values that can be submitted immediately, better for a demo - Rename bValid to valid --- demos/dialog/modal-form.html | 92 +++++++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 40 deletions(-) (limited to 'demos/dialog/modal-form.html') diff --git a/demos/dialog/modal-form.html b/demos/dialog/modal-form.html index 89fcd6205..3448ce824 100644 --- a/demos/dialog/modal-form.html +++ b/demos/dialog/modal-form.html @@ -12,7 +12,6 @@ - @@ -30,7 +29,11 @@ @@ -117,14 +126,17 @@

All form fields are required.

-
- - - - - - -
+
+ + + + + + + + + +
-- cgit v1.2.3