Skip to content

Commit

Permalink
stuff for layer name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mz committed Jun 22, 2017
1 parent 9180159 commit 1fcb5a0
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changes
=======

0.3.4 (2017-06-xx)
0.3.4 (2017-06-22)
------------------

- Fix the "auto-align" feature behavior for the new text annotation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ function parseQuery(search) {
lng: lang,
fallbackLng: _app.existing_lang[0],
backend: {
loadPath: 'static/locales/{{lng}}/translation.fb440288f7d7.json'
loadPath: 'static/locales/{{lng}}/translation.6c4b488b2f00.json'
}
}, function (err, tr) {
if (err) {
Expand Down Expand Up @@ -11716,10 +11716,12 @@ function createStyleBox(layer_name) {
var popup = d3.select(container).select('.modal-content').style('width', '300px').select('.modal-body');

var new_layer_name = layer_name;
var new_name_section = make_change_layer_name_section(popup, layer_name);
new_name_section.on('change', function () {
new_layer_name = this.value;
});
if (layer_name !== 'World') {
var new_name_section = make_change_layer_name_section(popup, layer_name);
new_name_section.on('change', function () {
new_layer_name = this.value;
});
}

if (type === 'Point') {
var current_pt_size = current_layers[layer_name].pointRadius;
Expand Down
11 changes: 7 additions & 4 deletions magrit_app/static/js/layers_style_popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,10 +1067,13 @@ function createStyleBox(layer_name) {
.select('.modal-body');

let new_layer_name = layer_name;
const new_name_section = make_change_layer_name_section(popup, layer_name);
new_name_section.on('change', function() {
new_layer_name = this.value;
});
if (layer_name !== 'World') {
const new_name_section = make_change_layer_name_section(popup, layer_name);
new_name_section.on('change', function() {
new_layer_name = this.value;
});
}


if (type === 'Point') {
var current_pt_size = current_layers[layer_name].pointRadius;
Expand Down
4 changes: 2 additions & 2 deletions magrit_app/templates/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title> {{ app_name }} </title>
<link rel="icon" type="image/png" href="static/img/favicon.png" />
<link href="static/css/scoped-bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="static/css/style.fb440288f7d7.min.css" rel="stylesheet" type="text/css">
<link href="static/css/style.6c4b488b2f00.min.css" rel="stylesheet" type="text/css">
<link href="static/css/vanilla-dataTables.min.css" rel="stylesheet" type="text/css">
<link href="static/css/alertify.min.css" rel="stylesheet" type="text/css">
<link href="static/css/semantic.min.css" rel="stylesheet" type="text/css">
Expand Down Expand Up @@ -51,6 +51,6 @@
</div>
</noscript>
<script src="static/js/lib/bootstrap-native3.mod.min.js"></script>
<script src="static/js/app.fb440288f7d7.js"></script>
<script src="static/js/app.6c4b488b2f00.js"></script>
</body>
</html>

0 comments on commit 1fcb5a0

Please sign in to comment.