From 43c1cd4d2a4c7e40d132d7463abc8011e950a4bc Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 10 Jul 2017 21:53:52 -0700 Subject: [PATCH] Update docs for new features --- server/documents/behaviors/form.html.eco | 20 ++++ server/documents/elements/step.html.eco | 31 ++++++ server/documents/hotfix.html.eco | 115 ++++++++++------------- server/files/javascript/form.js | 8 +- 4 files changed, 102 insertions(+), 72 deletions(-) diff --git a/server/documents/behaviors/form.html.eco b/server/documents/behaviors/form.html.eco index b6aa5c7497..0f30fc18de 100644 --- a/server/documents/behaviors/form.html.eco +++ b/server/documents/behaviors/form.html.eco @@ -1811,6 +1811,26 @@ type : 'UI Behavior' is valid Returns true/false whether a form passes its validation rules + + add rule(field, rules)
New in 2.2.11
+ Adds rule to existing rules for field, also aliased as add field + + + add fields(fields)
New in 2.2.11
+ Adds fields object to existing fields + + + remove rule(field, rules)
New in 2.2.11
+ Removes specific rule from field leaving other rules + + + remove field(field)
New in 2.2.11
+ Remove all validation for a field + + + add prompt(identifier, errors) + Adds error prompt to the field with the given identifier + is valid(fieldName) Returns true/false whether a field passes its validation rules diff --git a/server/documents/elements/step.html.eco b/server/documents/elements/step.html.eco index 17f6a3f0ff..7bf72a2f2e 100755 --- a/server/documents/elements/step.html.eco +++ b/server/documents/elements/step.html.eco @@ -291,6 +291,37 @@ themes : ['Default', 'Basic', 'GitHub'] +
+

+ Unstackable +
New in 2.2.11
+

+

A step can prevent itself from stacking on mobile

+
+
+ +
+
Shipping
+
Choose your shipping options
+
+
+
+ +
+
Billing
+
Enter billing information
+
+
+
+ +
+
Confirm Order
+
Verify order details
+
+
+
+
+

Attached diff --git a/server/documents/hotfix.html.eco b/server/documents/hotfix.html.eco index c1b635bdab..fbbc38d52b 100755 --- a/server/documents/hotfix.html.eco +++ b/server/documents/hotfix.html.eco @@ -8,80 +8,57 @@ type : 'Library' ---
-
-

Tell Us About Yourself

-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
- - -
-
-
- - -
+ + + +
@@ -93,4 +70,8 @@ type : 'Library' padding-top: 2em; } +.ui.dropdown { + float: right; +} + diff --git a/server/files/javascript/form.js b/server/files/javascript/form.js index 9abae640c7..a306e9a259 100644 --- a/server/files/javascript/form.js +++ b/server/files/javascript/form.js @@ -1,13 +1,12 @@ -semantic.form = {}; +semantic.validateForm = {}; // ready event -semantic.form.ready = function() { +semantic.validateForm.ready = function() { // selector cache var $codeDropdown = $('.existing.code .dropdown'), $dropdown = $('.main.container .ui.dropdown').not($codeDropdown), - $addExample = $('.add.example form') // alias handler ; @@ -21,11 +20,10 @@ semantic.form.ready = function() { .dropdown() ; - }; // attach ready event $(document) - .ready(semantic.form.ready) + .ready(semantic.validateForm.ready) ;