Skip to content

Commit 4bc1556

Browse files
authored
Merge pull request #17 from wmo-raf/dev
Updates
2 parents e949370 + e3b7b90 commit 4bc1556

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.2.3 on 2024-03-15 09:11
2+
3+
from django.db import migrations
4+
import django_extensions.db.fields
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('forecastmanager', '0019_city_slug'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='city',
16+
name='slug',
17+
field=django_extensions.db.fields.AutoSlugField(blank=True, default=None, editable=False, null=True, populate_from='name', unique=True),
18+
),
19+
]

forecastmanager/static/forecastmanager/js/weather-symbol-chooser-widget.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,11 @@ WeatherSymbolChooserWidget.prototype.createIconOptions = function () {
105105
this.symbolOptions.forEach((symbol) => {
106106
const $container = $("<div class='symbol-container'>")
107107
$container.on("click", () => that.onIconSelect(symbol))
108-
$(`<div class="icon icon-option" aria-hidden="true"><img alt="${symbol.label}" src="${symbol.icon_url}"/></div>`).appendTo($container)
109-
$(`<div class="icon-label">${symbol.label}</div>`).appendTo($container)
108+
$(`<div class="icon icon-option" aria-hidden="true"><img alt="${symbol.name}" src="${symbol.icon_url}"/></div>`).appendTo($container)
109+
$(`<div class="icon-label">${symbol.name}</div>`).appendTo($container)
110110
$container.appendTo(that.modalIconsContent)
111-
112111
});
113112

114-
115113
this.iconModalFilter = $("#id_icon_modal_filter")
116114
this.iconModalFilter.on('keyup', this.handleIconListFilter.bind(this));
117115
}

forecastmanager/templates/forecastmanager/create_forecast.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ <h2>Match Fields</h2>
196196
],
197197
contextMenu: true,
198198
licenseKey: 'non-commercial-and-evaluation',
199-
minSpareRows: 0
199+
minSpareRows: 0,
200+
height: 500,
200201
});
201202

202203
hot.addHook('afterChange', function (changes) {

forecastmanager/templates/forecastmanager/load_cities.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ <h2>Match Fields</h2>
145145
],
146146
contextMenu: true,
147147
licenseKey: 'non-commercial-and-evaluation',
148-
minSpareRows: 0
148+
minSpareRows: 0,
149+
height: 700
149150
});
150151

151152
hot.addHook('afterChange', function (changes) {

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = forecastmanager
3-
version = 0.4.2
3+
version = 0.4.3
44
description = Integration of Weather City Forecasts Manager in Wagtail Projects.
55
long_description = file:README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)