Skip to content

Commit

Permalink
[Fixes #3824] Manage style page show style name instead of title
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jun 6, 2018
1 parent 117bbdc commit abd6ac9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions geonode/layers/templates/layers/layer_style_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,16 @@ <h4>{% trans "Available styles" %}</h4>
{{ block.super }}
<script type="text/javascript">
$(function () {

$('#style-select').multiSelect({
afterSelect: function(values){
$('#default_style').append($("<option/>", {
value: values[0],
text: values[0]
}));
$("#style-select :selected").each(function() {
if(this.value === values[0]) {
$('#default_style').append($("<option/>", {
value: this.value,
text: this.text
}));
}
});
},
afterDeselect: function(values){
$('#default_style option').each(function() {
Expand All @@ -84,7 +87,6 @@ <h4>{% trans "Available styles" %}</h4>
});
}
});

});
</script>
{% endblock %}
1 change: 1 addition & 0 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ def start():
"""
Start GeoNode (Django, GeoServer & Client)
"""
sh('sleep 30')
info("GeoNode is now available.")


Expand Down

0 comments on commit abd6ac9

Please sign in to comment.