1

Moving options to dialog

This commit is contained in:
Alex Yatskov 2014-09-18 15:01:56 +09:00
parent ed36d33fa9
commit 6015ff22ad
2 changed files with 39 additions and 13 deletions

View File

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

View File

@ -53,21 +53,44 @@
</form> </form>
</div> </div>
<div id="output" style="display: none;"> <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-body">
<form> <form>
<div class="panel panel-default">
<div class="panel-heading"><big>Semantic tweaks to <span id="query" class="text-primary"></span></big></div>
<div style="padding: 10px;" class="unselectable">
<canvas id="grapher" width="800" height="550"></canvas><br>
<label class="checkbox-inline"> <label class="checkbox-inline">
<input type="checkbox" id="useLocalScale" name="useLocalScale" checked="checked"> Use local scale <input type="checkbox" id="useLocalScale" name="useLocalScale" checked="checked"> Use local scale
</label> </label>
<label class="checkbox-inline"> <label class="checkbox-inline">
<input type="checkbox" id="useRelativeScale" name="useRelativeScale" checked="checked"> Use relative scale <input type="checkbox" id="useRelativeScale" name="useRelativeScale" checked="checked"> Use relative scale
</label> </label>
</div>
</div>
</form> </form>
</div>
<div class="modal-footer">
<form>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
</div>
</div>
</div>
<div id="output" style="display: none;">
<div class="panel panel-default">
<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">
<canvas id="grapher" width="800" height="550"></canvas>
</div>
</div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><big>Query results (<span id="count" class="text-primary"></span>)</big></div> <div class="panel-heading"><big>Query results (<span id="count" class="text-primary"></span>)</big></div>