Browse Source

Merge pull request #511 from MohammadYounes/typos

A more consistent selector.
pull/510/merge
Jack Lukic 11 years ago
parent
commit
d70f43dca8
2 changed files with 8 additions and 8 deletions
  1. 10
      server/documents/modules/modal.html.eco
  2. 6
      src/modules/modal.js

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

@ -168,7 +168,7 @@ type : 'UI Module'
<div class="no example">
<h4 class="ui header">Approve / Deny Callbacks</h4>
<p>Modals will automatically tie approve deny callbacks to any positive/approve or negative/deny 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 or 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">
$('.basic.modal')
.modal('setting', {
@ -444,7 +444,7 @@ type : 'UI Module'
<tr>
<td>onDeny</td>
<td>Modal</td>
<td>Is called after a negative or cancel button is pressed.</td>
<td>Is called after a negative or deny or cancel button is pressed.</td>
</tr>
</tbody>
</table>
@ -472,8 +472,8 @@ type : 'UI Module'
<div class="code">
selector : {
close : '.close, .actions .button',
approve : '.actions .positive, .actions .approve',
deny : '.actions .negative, .actions .cancel'
approve : '.actions .positive, .actions .approve, .actions .ok',
deny : '.actions .negative, .actions .deny, .actions .cancel'
},
</div>
</td>
@ -539,4 +539,4 @@ type : 'UI Module'
</table>
</div>
</div>
</div>

6
src/modules/modal.js

@ -674,8 +674,8 @@ $.fn.modal.settings = {
selector : {
close : '.close, .actions .button',
approve : '.actions .positive, .actions .approve',
deny : '.actions .negative, .actions .cancel',
approve : '.actions .positive, .actions .approve, .actions .ok',
deny : '.actions .negative, .actions .deny, .actions .cancel',
modal : '.ui.modal'
},
error : {
@ -689,4 +689,4 @@ $.fn.modal.settings = {
};
})( jQuery, window , document );
})( jQuery, window , document );
Loading…
Cancel
Save