1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

Add: Refresh button

This commit is contained in:
Rokt33r
2015-07-30 14:40:14 +09:00
parent 45b99d13cd
commit ac0d81f9b3
4 changed files with 37 additions and 4 deletions

View File

@@ -363,7 +363,9 @@ module.exports = React.createClass({
keywords.unshift('$s')
}
this.setState({search: keywords.join(' ')})
this.setState({search: keywords.join(' ')}, function () {
this.selectArticleByIndex(0)
})
},
toggleBlueprintFilter: function () {
var keywords = typeof this.state.search === 'string' ? this.state.search.split(' ') : []
@@ -389,7 +391,9 @@ module.exports = React.createClass({
keywords.unshift('$b')
}
this.setState({search: keywords.join(' ')})
this.setState({search: keywords.join(' ')}, function () {
this.selectArticleByIndex(0)
})
},
showOnlyWithTag: function (tag) {
return function () {