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

@@ -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;
}

View File

@@ -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>

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 = "";
}
},