Skip to content

Commit

Permalink
Update Bootstrap example to 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Sep 8, 2014
1 parent 8c9a249 commit 61c42cc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
42 changes: 24 additions & 18 deletions examples/jquery-bootstrap/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,33 @@ var BootstrapModal = React.createClass({
}
if (this.props.cancel) {
cancelButton = (
<BootstrapButton onClick={this.handleCancel}>
<BootstrapButton onClick={this.handleCancel} className="btn-default">
{this.props.cancel}
</BootstrapButton>
);
}

return (
<div className="modal hide fade">
<div className="modal-header">
<button
type="button"
className="close"
onClick={this.handleCancel}
dangerouslySetInnerHTML={{__html: '&times'}}
/>
<h3>{this.props.title}</h3>
</div>
<div className="modal-body">
{this.props.children}
</div>
<div className="modal-footer">
{cancelButton}
{confirmButton}
<div className="modal fade">
<div className="modal-dialog">
<div className="modal-content">
<div className="modal-header">
<button
type="button"
className="close"
onClick={this.handleCancel}>
&times;
</button>
<h3>{this.props.title}</h3>
</div>
<div className="modal-body">
{this.props.children}
</div>
<div className="modal-footer">
{cancelButton}
{confirmButton}
</div>
</div>
</div>
</div>
);
Expand Down Expand Up @@ -107,7 +111,9 @@ var Example = React.createClass({
return (
<div className="example">
{modal}
<BootstrapButton onClick={this.openModal}>Open modal</BootstrapButton>
<BootstrapButton onClick={this.openModal} className="btn-default">
Open modal
</BootstrapButton>
</div>
);
},
Expand Down
12 changes: 4 additions & 8 deletions examples/jquery-bootstrap/thirdparty/bootstrap.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 61c42cc

Please sign in to comment.