update web ui

This commit is contained in:
OttoMao
2015-07-09 18:51:41 +08:00
parent c80acde287
commit 8b138ffe64
7 changed files with 37 additions and 32 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 = "";
}
},