mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 07:45:41 +00:00
update web ui
This commit is contained in:
@@ -300,12 +300,12 @@ body, html {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.mapWrapper ul{
|
||||
.mapWrapper .mapRuleList ul{
|
||||
list-style: none;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.mapWrapper li{
|
||||
.mapWrapper .mapRuleList li{
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
@@ -29,8 +29,8 @@
|
||||
</div>
|
||||
|
||||
<div class="ctrlWrapper">
|
||||
<a href="#"><span class="topBtn J_showFilter"><i class="uk-icon-filter"></i>Filter</span></a>
|
||||
<span class="J_filterSection" style="display:none">
|
||||
<a href="#"><span class="topBtn J_showFilter"><i class="uk-icon-filter"></i>Filter</span></a>
|
||||
<a href="#"><span class="topBtn J_showMapPanel"><i class="uk-icon-shield"></i>Map Local</span></a>
|
||||
|
||||
<span class="sep">|</span>
|
||||
|
@@ -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 = "";
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user