mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 16:01:26 +00:00
commit some format issues
This commit is contained in:
parent
8b138ffe64
commit
6682415899
@ -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 = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -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 = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user