Skip to content

Commit 7197e9d

Browse files
committed
2.1.4 doc finalizes
1 parent 15a105c commit 7197e9d

4 files changed

Lines changed: 19 additions & 36 deletions

File tree

server/documents/behaviors/form.html.eco

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type : 'UI Behavior'
3030
<div class="ui ignored info message">
3131
A validation object includes a list of form elements, and rules to validate each field against. Fields are matched by either the <code>id</code>, <code>name</code>, or <code>data-validate</code> property matching the identifier specified in the settings object.
3232
</div>
33-
<div class="ignore code" data-title="Shorthand">
33+
<div class="ignore code" data-title="Shorthand Validation">
3434
$('.ui.form')
3535
.form({
3636
fields: {
@@ -45,7 +45,7 @@ type : 'UI Behavior'
4545
;
4646
</div>
4747
<div class="ui horizontal divider">or</div>
48-
<div class="ignore code" data-title="Expanded Version">
48+
<div class="ignore code" data-title="Full Validation Settings">
4949
$('.ui.form')
5050
.form({
5151
fields: {

server/documents/hotfix.html.eco

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,10 @@ type : 'Library'
99

1010
<div class="ui container">
1111

12-
normal:
13-
<div class="ui three column middle aligned grid">
14-
<div class="column">
15-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
16-
</div>
17-
<div class="column">
18-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
19-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
20-
</div>
21-
<div class="column">
22-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
23-
</div>
24-
</div>
25-
26-
abnormal:
27-
<div class="ui three column middle aligned grid">
28-
<div class="row">
29-
<div class="column">
30-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
31-
</div>
32-
<div class="column">
33-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
34-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
35-
</div>
36-
<div class="column">
37-
<img class="ui image" src="http://semantic-ui.com/images/wireframe/image.png">
38-
</div>
39-
</div>
40-
</div>
41-
42-
</div>
12+
<select class="ui search dropdown">
13+
<%- @partial('examples/single/state-options') %>
14+
</select>
15+
<div class="ui button">Button</div>
4316
</body>
4417
<!-- TEST JS HERE !-->
4518
<script>
@@ -51,6 +24,11 @@ $(document)
5124
allowAdditions: true
5225
})
5326
;
27+
$('.ui.button')
28+
.on('click', function() {
29+
$('.ui.dropdown').dropdown('set selected', 'VA');
30+
})
31+
;
5432
})
5533
;
5634
</script>

server/files/javascript/validate-form.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ semantic.validateForm.ready = function() {
1212
$dropdownForm = $('.dropdown.example .ui.form'),
1313
$optionalForm = $('.optional.example .ui.form'),
1414
$inlineForm = $('.inline.example .ui.form'),
15-
$form = $('.ui.form').not($dogForm).not($inlineForm).not($dropdownForm).not($optionalForm).not($autoForm).not($promptForm),
15+
$form = $('.ui.form').not($dogForm).not($inlineForm).not($dropdownForm).not($optionalForm).not($promptForm),
1616
$checkbox = $('.main.container .ui.checkbox'),
1717
$dropdown = $('.main.container .ui.dropdown'),
1818
// alias
@@ -194,7 +194,7 @@ semantic.validateForm.ready = function() {
194194
.dropdown()
195195
;
196196

197-
$autoForm
197+
/* $autoForm
198198
.form({
199199
fields: {
200200
name : 'empty',
@@ -206,7 +206,7 @@ semantic.validateForm.ready = function() {
206206
}
207207
})
208208
;
209-
209+
*/
210210
$promptForm
211211
.form({
212212
fields: {

server/files/stylesheets/docs.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,11 @@ blockquote .author {
771771
max-height: 225px;
772772
}
773773

774+
#example .clear.dropdown .dropdown {
775+
vertical-align: middle;
776+
}
777+
778+
774779
/* Requires Clear */
775780
#example .clearing.example {
776781
overflow: hidden;

0 commit comments

Comments
 (0)