Browse Source

Merge pull request #522 from MohammadYounes/docs

Update docs
pull/532/head
Jack Lukic 11 years ago
parent
commit
61130d26dd
2 changed files with 4 additions and 3 deletions
  1. 6
      server/documents/modules/modal.html.eco
  2. 1
      server/layouts/default.html.eco

6
server/documents/modules/modal.html.eco

@ -168,7 +168,7 @@ type : 'UI Module'
<div class="no example"> <div class="no example">
<h4 class="ui header">Approve / Deny Callbacks</h4> <h4 class="ui header">Approve / Deny Callbacks</h4>
<p>Modals will automatically tie approve deny callbacks to any positive/approve or negative/deny or ok/cancel buttons. If a callback returns false it will prevent the modal from closing</p>
<p>Modals will automatically tie approve deny callbacks to any positive/approve, negative/deny or ok/cancel buttons. If a callback returns false it will prevent the modal from closing</p>
<div class="code" data-demo="true"> <div class="code" data-demo="true">
$('.basic.modal') $('.basic.modal')
.modal('setting', { .modal('setting', {
@ -450,12 +450,12 @@ type : 'UI Module'
<tr> <tr>
<td>onApprove</td> <td>onApprove</td>
<td>Modal</td> <td>Modal</td>
<td>Is called after a positive or approve button is pressed</td>
<td>Is called after a positive, approve or ok button is pressed</td>
</tr> </tr>
<tr> <tr>
<td>onDeny</td> <td>onDeny</td>
<td>Modal</td> <td>Modal</td>
<td>Is called after a negative or deny or cancel button is pressed.</td>
<td>Is called after a negative, deny or cancel button is pressed.</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

1
server/layouts/default.html.eco

@ -1,4 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html>
<head> <head>
<% uiIntroduction = @getCollection("documents").findAll({type: $in: ['UI Introduction']},[{title: 1}]).toJSON() %> <% uiIntroduction = @getCollection("documents").findAll({type: $in: ['UI Introduction']},[{title: 1}]).toJSON() %>
<% uiProject = @getCollection("documents").findAll({type: $in: ['Semantic Project']},[{title: 1}]).toJSON() %> <% uiProject = @getCollection("documents").findAll({type: $in: ['Semantic Project']},[{title: 1}]).toJSON() %>

Loading…
Cancel
Save