Rename myModal to newTaskModal

This commit is contained in:
Tom Willemse 2013-07-24 20:45:43 +02:00
parent 4b9563abd4
commit 108726efd4
2 changed files with 4 additions and 4 deletions

View file

@ -282,7 +282,7 @@ var StoryForm = React.createClass({
var headline = this.refs.headline.getDOMNode().value.trim(); var headline = this.refs.headline.getDOMNode().value.trim();
var content = this.refs.content.getDOMNode().value.trim(); var content = this.refs.content.getDOMNode().value.trim();
$(".myModal").modal('hide'); $(".newTaskModal").modal('hide');
this.props.onStorySubmit({role: role, this.props.onStorySubmit({role: role,
necessity: necessity, necessity: necessity,
headline: headline, headline: headline,
@ -297,13 +297,13 @@ var StoryForm = React.createClass({
}), }),
render: function() { render: function() {
return ( return (
<div class="myModal modal fade hide"> <div class="newTaskModal modal fade hide">
<form onSubmit={this.handleSubmit} class="form-horizontal"> <form onSubmit={this.handleSubmit} class="form-horizontal">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <button type="button" class="close" data-dismiss="modal">
&times; &times;
</button> </button>
<h3 id="myModalLabel">New story</h3> <h3 id="newTaskModalLabel">New story</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div id="new-story"> <div id="new-story">

View file

@ -53,7 +53,7 @@
<div class="container"> <div class="container">
<h1> <h1>
<button data-target=".myModal" role="button" <button data-target=".newTaskModal" role="button"
data-toggle="modal" class="nothing"> data-toggle="modal" class="nothing">
<i class="icon-plus-sign icon-2x"></i> <i class="icon-plus-sign icon-2x"></i>
</button> </button>