Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f07cc7

Browse files
committedJul 2, 2015
Some small changes for the final flux-version
1 parent 0c6a373 commit 3f07cc7

File tree

3 files changed

+30045
-30
lines changed

3 files changed

+30045
-30
lines changed
 

‎static/bundle.js

Lines changed: 30043 additions & 9 deletions
Large diffs are not rendered by default.

‎static/components.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@ var React = require('react');
22
var BookStore = require('./stores').BookStore;
33
var BookActions = require('./actions').BookActions;
44

5-
var SearchPanel = React.createClass({
6-
render: function() {
7-
return (
8-
<div className="row">
9-
<div className="one-fourth column">
10-
Filter: &nbsp;
11-
<input ref='search' type='text' value={this.props.search} onChange={this.onSearchChanged} />
12-
{this.props.search?<button onClick={this.props.onClearSearch} >x</button>:null}
13-
</div>
14-
</div>
15-
)
16-
},
17-
onSearchChanged: function() {
18-
var query = React.findDOMNode(this.refs.search).value;
19-
this.props.onSearchChanged(query);
20-
}
21-
});
22-
235
var BookTableRow = React.createClass({
246
render: function() {
257
return (
@@ -40,7 +22,6 @@ var BookTableRow = React.createClass({
4022
var BookTable = React.createClass({
4123
render: function() {
4224
var rows = [];
43-
var self=this;
4425
this.props.books.forEach(function(book) {
4526
rows.push(<BookTableRow key={book.id} book={book} />);
4627
});
@@ -132,7 +113,7 @@ var SearchPanel = React.createClass({
132113
)
133114
},
134115
onSearchChange: function() {
135-
var query = React.findDOMNode(this.refs.search).value.trim();
116+
var query = React.findDOMNode(this.refs.search).value;
136117
if (this.promise) {
137118
clearInterval(this.promise)
138119
}

‎static/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ module.exports = {
44
BOOK_EDIT_CANCEL: 'BOOK_EDIT_CANCEL',
55
BOOK_SAVE: 'BOOK_SAVE',
66
BOOK_SEARCH: 'BOOK_SEARCH',
7-
BOOK_DELETE: 'BOOK_DELETE',
7+
BOOK_DELETE: 'BOOK_DELETE'
88
};
99

0 commit comments

Comments
 (0)
Please sign in to comment.