Browse Source

hide trip create button until a range is selected

pull/5/head
Aaron Parecki 8 years ago
parent
commit
17f270a08b
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      compass/public/assets/map.js
  2. +1
    -1
      compass/resources/views/map.blade.php

+ 1
- 0
compass/public/assets/map.js View File

@ -137,6 +137,7 @@ jQuery(function($){
var db_token = $("#database").data("token"); var db_token = $("#database").data("token");
$.get("/api/query?format=linestring&start="+$('#range-from').val()+"&end="+$('#range-to').val()+"&tz="+$("#timezone").val()+"&token="+db_token, function(data){ $.get("/api/query?format=linestring&start="+$('#range-from').val()+"&end="+$('#range-to').val()+"&tz="+$("#timezone").val()+"&token="+db_token, function(data){
$("#range-go").removeClass("loading"); $("#range-go").removeClass("loading");
$("#trip-create-form").removeClass("hidden");
displayLineOnMap(data, {pins: true}); displayLineOnMap(data, {pins: true});
}); });
return false; return false;

+ 1
- 1
compass/resources/views/map.blade.php View File

@ -14,7 +14,7 @@
</div> </div>
</div> </div>
@if($database->micropub_endpoint) @if($database->micropub_endpoint)
<div class="ui form" style="margin-top: 4px;">
<div class="ui form hidden" style="margin-top: 4px;" id="trip-create-form">
<div class="fields"> <div class="fields">
<div style="display: flex; margin-right: 4px;"> <div style="display: flex; margin-right: 4px;">
<select id="trip-mode"> <select id="trip-mode">

Loading…
Cancel
Save