Skip to content

Commit

Permalink
Merge pull request #108 from midas-isg/front-end-updates
Browse files Browse the repository at this point in the history
Front end updates
  • Loading branch information
TerenceSperringerJr authored Mar 5, 2018
2 parents d9ba5a2 + eb23d05 commit badf9f7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/country_selector.scala.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="form-group horizontal-padding">
<label for="country">Country</label>
<button hidden class="btn btn-sm btn-default" id="get-all-countries">Get All Countries</button>
<button disabled class="btn btn-sm btn-default" id="get-all-countries">Get All Countries</button>

<select id="country" class="form-control">
<option disabled selected value="-1">(not selected)</option>
Expand Down
2 changes: 1 addition & 1 deletion app/views/create.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<input type="text" id="au-name" class="form-control" placeholder="Name" aria-describedby="name-label">
</div>

<div class="extra-bottom-space" hidden>
<div id="code-types" class="extra-bottom-space" hidden>
<div class="half-block">
<div class="input-group">
<span id="code-label" class="input-group-addon">Code:</span>
Expand Down
6 changes: 6 additions & 0 deletions public/javascripts/create-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ $(document).ready(function() {

if(tildeKey && altKey) {
$("#au-create").show();
$("#code-types").show();
$("#update-button").show();
$("#download-button").show();

// are we still using this one...?
$("#au-list").show();
}

return;
Expand Down
6 changes: 5 additions & 1 deletion public/javascripts/map-driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ MapDriver.prototype.formatGeoJSON = function(geoJSON) {
auParentGID = this.parent,
description = $("#description").val(),
dateTokens = HELPERS.validDate(startDate),
gisSourceID,
gisSourceURL,
useParent,
properties;

Expand Down Expand Up @@ -646,7 +648,9 @@ MapDriver.prototype.formatGeoJSON = function(geoJSON) {
properties["startDate"] = startDate;
properties["endDate"] = endDate;
properties["kml"] = this.kml;

properties["gisSourceURL"] = gisSourceURL;
properties["gisSourceId"] = gisSourceID;

return geoJSON;
}

Expand Down

0 comments on commit badf9f7

Please sign in to comment.