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,
result = {};
var filePath = React.findDOMNode(self.refs.localFilePath).value,
keyword = React.findDOMNode(self.refs.keywordInput).value;
var filePathInput = React.findDOMNode(self.refs.localFilePath),
filePath = filePathInput.value,
keywordInput = React.findDOMNode(self.refs.keywordInput),
keyword = keywordInput.value;
if(filePath && keyword){
self.props.onSubmit.call(null,{
keyword : keyword,
local : filePath
});
filePathInput.value = "";
keywordInput.value = "";
}
},

View File

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