commit some format issues

This commit is contained in:
OttoMao 2015-07-11 19:53:29 +08:00
parent 8b138ffe64
commit 6682415899
2 changed files with 14 additions and 4 deletions

View File

@ -39,14 +39,19 @@ function init(React){
var self = this, var self = this,
result = {}; result = {};
var filePath = React.findDOMNode(self.refs.localFilePath).value, var filePathInput = React.findDOMNode(self.refs.localFilePath),
keyword = React.findDOMNode(self.refs.keywordInput).value; filePath = filePathInput.value,
keywordInput = React.findDOMNode(self.refs.keywordInput),
keyword = keywordInput.value;
if(filePath && keyword){ if(filePath && keyword){
self.props.onSubmit.call(null,{ self.props.onSubmit.call(null,{
keyword : keyword, keyword : keyword,
local : filePath local : filePath
}); });
filePathInput.value = "";
keywordInput.value = "";
} }
}, },

View File

@ -27969,14 +27969,19 @@
var self = this, var self = this,
result = {}; result = {};
var filePath = React.findDOMNode(self.refs.localFilePath).value, var filePathInput = React.findDOMNode(self.refs.localFilePath),
keyword = React.findDOMNode(self.refs.keywordInput).value; filePath = filePathInput.value,
keywordInput = React.findDOMNode(self.refs.keywordInput),
keyword = keywordInput.value;
if(filePath && keyword){ if(filePath && keyword){
self.props.onSubmit.call(null,{ self.props.onSubmit.call(null,{
keyword : keyword, keyword : keyword,
local : filePath local : filePath
}); });
filePathInput.value = "";
keywordInput.value = "";
} }
}, },