fix minor javascript issues
This commit is contained in:
parent
eeaaf3f135
commit
e63ce7f1ea
1 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ editor = {
|
||||||
},
|
},
|
||||||
_sidebar_loaded: function(data) {
|
_sidebar_loaded: function(data) {
|
||||||
// sidebar was loaded. load the content. check if there are any redirects. call _check_start_editing.
|
// sidebar was loaded. load the content. check if there are any redirects. call _check_start_editing.
|
||||||
var content = $('#sidebar').removeClass('loading').find('.content');;
|
var content = $('#sidebar').removeClass('loading').find('.content');
|
||||||
if (data !== undefined) {
|
if (data !== undefined) {
|
||||||
content.html($(data));
|
content.html($(data));
|
||||||
}
|
}
|
||||||
|
@ -340,8 +340,8 @@ editor = {
|
||||||
// onEachFeature callback for GeoJSON loader – register all needed events
|
// onEachFeature callback for GeoJSON loader – register all needed events
|
||||||
if (feature.properties.type === editor._highlight_type) {
|
if (feature.properties.type === editor._highlight_type) {
|
||||||
var list_elem = $('#sidebar').find('[data-list] tr[data-pk='+String(feature.properties.id)+']');
|
var list_elem = $('#sidebar').find('[data-list] tr[data-pk='+String(feature.properties.id)+']');
|
||||||
if (list_elem.length == 0) return;
|
if (list_elem.length === 0) return;
|
||||||
highlight_layer = L.geoJSON(layer.feature, {
|
var highlight_layer = L.geoJSON(layer.feature, {
|
||||||
style: function() {
|
style: function() {
|
||||||
return {
|
return {
|
||||||
weight: 3,
|
weight: 3,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue