Skip to content

Commit

Permalink
[style] Renamed other instances of "geo" to "loci"
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Nov 21, 2017
1 parent fc9ad81 commit 682b357
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion django_loci/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class ObjectLocationInline(TimeReadonlyAdminMixin, GenericStackedInline):
fieldsets = (
(None, {'fields': ('type',)}),
('Geographic coordinates', {
'classes': ('geo', 'coords'),
'classes': ('loci', 'coords'),
'fields': ('location_selection', 'location',
'name', 'address', 'geometry'),
}),
Expand Down
2 changes: 1 addition & 1 deletion django_loci/static/django-loci/css/loci.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.field-location strong{ margin-left: 3px }
input[type=text]{ width: 320px }
/* simulate required fields */
.coords.geo label{
.coords.loci label{
font-weight: bold;
color: #333;
}
Expand Down
18 changes: 9 additions & 9 deletions django_loci/static/django-loci/js/loci.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ this JS is shared between:
django.jQuery(function ($) {
'use strict';

var $outdoor = $('.geo.coords'),
var $outdoor = $('.loci.coords'),
$indoor = $('.indoor.coords'),
$allSections = $('.coords'),
$geoRows = $('.geo.coords .form-row:not(.field-location_selection)'),
$geoEdit = $('.field-name, .field-address, .field-geometry', '.geo.coords'),
$geoRows = $('.loci.coords .form-row:not(.field-location_selection)'),
$geoEdit = $('.field-name, .field-address, .field-geometry', '.loci.coords'),
$indoorRows = $('.indoor.coords .form-row:not(.field-indoor)'),
geometryId = $('.field-geometry label').attr('for'),
mapName = 'leafletmap' + geometryId + '-map',
loadMapName = 'loadmap' + geometryId + '-map',
$type = $('.inline-group .field-type select'),
$locationSelectionRow = $('.geo.coords .field-location_selection'),
$locationSelectionRow = $('.loci.coords .field-location_selection'),
$locationSelection = $locationSelectionRow.find('select'),
$locationRow = $('.geo.coords .field-location'),
$locationRow = $('.loci.coords .field-location'),
$location = $locationRow.find('select, input'),
$locationLabel = $('.field-location .item-label'),
$name = $('.field-name input', '.geo.coords'),
$address = $('.field-address input', '.geo.coords'),
$name = $('.field-name input', '.loci.coords'),
$address = $('.field-address input', '.loci.coords'),
$geometryTextarea = $('.field-geometry textarea'),
baseLocationJsonUrl = $('#loci-location-json-url').attr('data-url'),
baseLocationFloorplansJsonUrl = $('#loci-location-floorplans-json-url').attr('data-url'),
$geometryRow = $geometryTextarea.parents('.form-row'),
msg = gettext('Location data not received yet'),
$noLocationDiv = $('.no-location', '.geo.coords'),
$noLocationDiv = $('.no-location', '.loci.coords'),
$floorplanSelectionRow = $('.indoor.coords .field-floorplan_selection'),
$floorplanSelection = $floorplanSelectionRow.find('select'),
$floorplanRow = $('.indoor .field-floorplan'),
Expand Down Expand Up @@ -294,7 +294,7 @@ django.jQuery(function ($) {
if (!$geometryTextarea.val()) {
$geometryRow.hide();
$geometryRow.parent().append('<div class="no-location">' + msg + '</div>');
$noLocationDiv = $('.no-location', '.geo.coords');
$noLocationDiv = $('.no-location', '.loci.coords');
}
listenForLocationUpdates($location.val());
} else if (!$type.length) {
Expand Down

0 comments on commit 682b357

Please sign in to comment.