1

Removing unnecessary form tags, improving options dialog

This commit is contained in:
Alex Yatskov 2014-09-18 15:12:14 +09:00
parent 6015ff22ad
commit 5b908819bb
2 changed files with 50 additions and 57 deletions

View File

@ -90,9 +90,6 @@
ready: function() {
$('#keywords').selectpicker();
$('.btn').click(function(e) {
e.preventDefault();
});
$.getJSON('/node/keywords', function(keywords) {
for (var i = 0, count = keywords.length; i < count; ++i) {

View File

@ -17,8 +17,7 @@
</h1>
</div>
<div id="input">
<form class="form-horizontal">
<div id="input" class="form-horizontal">
<div class="form-group">
<label for="keywords" class="col-md-2 control-label">Keywords</label>
<div class="col-md-10">
@ -50,27 +49,26 @@
</button>
</div>
</div>
</form>
</div>
<div class="modal fade options" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header"><big>Options</big></div>
<div class="modal-header"><big>Visualization Options</big></div>
<div class="modal-body">
<form>
<div class="form-group">
<label class="checkbox-inline">
<input type="checkbox" id="useLocalScale" name="useLocalScale" checked="checked"> Use local scale
</label>
</div>
<div class="form-group">
<label class="checkbox-inline">
<input type="checkbox" id="useRelativeScale" name="useRelativeScale" checked="checked"> Use relative scale
</label>
</form>
</div>
</div>
<div class="modal-footer">
<form>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
</div>
</div>
@ -81,10 +79,8 @@
<div class="panel-heading">
<big>Semantic tweaks to <span id="query" class="text-primary"></span></big>
<div class="btn-group pull-right">
<form>
<button class="btn btn-xs btn-success">Learn...</button>
<button class="btn btn-xs btn-default" data-toggle="modal" data-target=".options">Options...</button>
</form>
</div>
</div>
<div style="padding: 10px;" class="unselectable">