Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 00b2ce5

Browse files
committed
spelling fix and comment updates
1 parent 37205d0 commit 00b2ce5

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

js/views/dialog.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ var __ = require('underscore'),
66
Dialog;
77

88
/*
9-
Used to show a dialog with optional buttons. The dialog renders and opens itself on instantiation
10-
and, by default, removes itself on close. So, in it's simplest form a dialog can be launched as follows:
9+
Used to show a dialog with optional buttons. By default, the dialog removes itself on close. In it's
10+
simplest form a dialog can be launched as follows:
1111
1212
var myDialog = new Dialog({
1313
title: 'Houston, We Have A problem!',
1414
message: 'How can you eat your pudding, if you haven't eaten your meat!?'
15-
});
15+
}).render().open();
1616
1717
Additionally, you could specify an array of buttons which will be displayed at the bottom of the
1818
dialog. The buttons should be provided in the following format:
@@ -35,8 +35,8 @@ Please Note: This Dialog is designed for simple messages with optional classes o
3535
you find that your situation needs custom markup, css (beyond the classes you can optionally pass in),
3636
and/or behavior (e.g. tabs, etc.), you should write a custom view and extend from the Base Modal.
3737
38-
Also, if it's just a super simple message you need, please use simpleMessageModal instance attached to
39-
out app instance.
38+
Also, if it's just a super simple message you need, please use the simpleMessageModal instance attached to
39+
our app instance.
4040
*/
4141

4242
Dialog = baseModal.extend({

js/views/simpleMessageModal.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ var __ = require('underscore'),
55
baseModal = require('./baseModal');
66

77
/*
8+
An instance of this modal is attached to our App instance, which allows you to display a simple message
9+
as follows:
10+
11+
var app = require('../App.js').getApp(); // adjust path as needed
12+
13+
app.simpleMessageModal.open({
14+
title: 'The Beatles',
15+
message: 'We all need a little help from our friends.'
16+
});
17+
818
Please Note: This Modal is designed for a very simple message (containing a title and a message body).
919
If you need something beyond that, check out the Dialog which will allow you to optionally pass in
1020
classes as well as buttons. If you need something beyond that, please create a custom modal extending

0 commit comments

Comments
 (0)