Skip to content

Commit 67682d9

Browse files
committed
Updates to docs
1 parent 3dc1d73 commit 67682d9

7 files changed

Lines changed: 316 additions & 338 deletions

File tree

docpad.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ docpadConfig = {
2929
# Here are some old site urls that you would like to redirect from
3030
oldUrls: [],
3131

32-
version: "2.0.6",
32+
version: "2.0.7",
3333

3434
branch: "master",
3535

server/documents/behaviors/api.html.eco

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ type : 'UI Behavior'
568568
// test whether a json response is valid
569569
return response.success || false;
570570
},
571+
onComplete: function(response) {
572+
// always called after xhr complete
573+
},
571574
onSuccess: function(response) {
572575
// valid response and response.success = true
573576
},
@@ -1134,12 +1137,12 @@ type : 'UI Behavior'
11341137
</td>
11351138
</tr>
11361139
<tr>
1137-
<td>onSuccess(response, element)</td>
1140+
<td>onSuccess(response, element, xhr)</td>
11381141
<td>state context</td>
11391142
<td>Callback after successful response, JSON response must pass <code>successTest</code></td>
11401143
</tr>
11411144
<tr>
1142-
<td>onComplete(response, element)</td>
1145+
<td>onComplete(response, element, xhr)</td>
11431146
<td>state context</td>
11441147
<td>Callback on request complete regardless of conditions</td>
11451148
</tr>
@@ -1149,12 +1152,12 @@ type : 'UI Behavior'
11491152
<td>Callback on failed response, or JSON response that fails <code>successTest</code></td>
11501153
</tr>
11511154
<tr>
1152-
<td>onError(errorMessage, element)</td>
1155+
<td>onError(errorMessage, element, xhr)</td>
11531156
<td>state context</td>
11541157
<td>Callback on server error from returned status code, or XHR failure.</td>
11551158
</tr>
11561159
<tr>
1157-
<td>onAbort(errorMessage, element)</td>
1160+
<td>onAbort(errorMessage, element, xhr)</td>
11581161
<td>state context</td>
11591162
<td>Callback on abort caused by user clicking a link or manually cancelling request.</td>
11601163
</tr>

server/documents/hotfix.html.eco

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,20 @@ type : 'Library'
1010
<!-- TEST JS HERE !-->
1111
<script>
1212
$(document).ready(function() {
13-
$('.ui.dropdown')
14-
.dropdown({debug: true});
13+
$('.button').popup({
14+
on: 'hover',
15+
onShow: function() {
16+
console.log('show');
17+
}
18+
});
1519
});
1620
</script>
1721

1822
<!-- TEST CSS HERE !-->
1923
<style type="text/css">
20-
.container {
21-
padding-top: 5em;
22-
}
2324
</style>
2425

25-
<div class="ui container">
26-
<form class="ui form">
27-
<div class="field">
28-
<label>First Name</label>
29-
<input type="text" name="first-name" placeholder="First Name">
30-
</div>
31-
<div class="field">
32-
<label>Gender</label>
33-
<select class="ui disabled dropdown">
34-
<option value="">Gender</option>
35-
<option value="1">Male</option>
36-
<option value="0">Female</option>
37-
</select>
38-
</div>
39-
<div class="field">
40-
<label>Choices</label>
41-
<div class="ui disabled dropdown">Dropdown <i class="dropdown icon"></i>
42-
43-
<div class="menu">
44-
<div class="item">Choice 1</div>
45-
<div class="item">Choice 2</div>
46-
<div class="item">Choice 3</div>
47-
</div>
48-
</div>
49-
</div>
50-
<div class="field">
51-
<label>Last Name</label>
52-
<input type="text" name="last-name" placeholder="Last Name">
53-
</div>
54-
</form>
55-
56-
57-
</div>
26+
<div class="ui container" style="padding-top: 2em;">
27+
<div class="ui button first" data-content="One">One</div>
28+
<div class="ui button second" data-content="Two">Two</div>
5829
</body>

server/documents/modules/dropdown.html.eco

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ themes : ['Default', 'Material']
8080
</div>
8181
<div class="ui selection dropdown">
8282
<input type="hidden" name="gender">
83-
<div class="default text">Gender</div>
8483
<i class="dropdown icon"></i>
84+
<div class="default text">Gender</div>
8585
<div class="menu">
8686
<div class="item" data-value="1">Male</div>
8787
<div class="item" data-value="0">Female</div>

server/documents/modules/sticky.html.eco

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ type : 'UI Module'
343343
<div class="example">
344344
<h4 class="ui header">Initializing</h4>
345345
<p>Sticky is initialized on content that should be stuck to viewport. Most instances require specifying a secondary <code>context</code> which will define the top and bottom bounds of the sticky element. Sticky content must be included inside a containing element. This container can be a <a href="/elements/rail.html">ui rail</a> or your own arbitrary container, but should exist parallel to your context.</p>
346+
347+
<div class="ui warning ignored message">
348+
Sticky does not work in tables without using <code>table-layout: fixed</code> to prevent automatic resizing with content
349+
</div>
346350
<div class="code" data-type="html">
347351
<div class="ui rail">
348352
<div class="ui sticky">

0 commit comments

Comments
 (0)