diff --git a/project/static/jquery.recurrenceinput.js b/project/static/jquery.recurrenceinput.js index 82bbd3d..08fab7a 100644 --- a/project/static/jquery.recurrenceinput.js +++ b/project/static/jquery.recurrenceinput.js @@ -1262,13 +1262,19 @@ } function getField(field) { - // See if it is a field already - var realField = $(field); - if (!realField.length) { + var realField = null; + + if (field instanceof Element) { + // See if it is a field already + realField = $(field); + } + + if (realField == null || !realField.length) { // Otherwise, we assume it's an id: realField = $('#' + field); } - if (!realField.length) { + + if (realField == null || !realField.length) { // Still not? Then it's a name. realField = $("input[name='" + field + "']"); } diff --git a/project/templates/_macros.html b/project/templates/_macros.html index 948aa67..551442c 100644 --- a/project/templates/_macros.html +++ b/project/templates/_macros.html @@ -218,7 +218,7 @@ {% if link %}
- {{ link }} + {{ link }}
{% endif %} {% endmacro %} @@ -411,7 +411,7 @@

- {{ _('Show directions') }} + {{ _('Show directions') }}

{% endif %} @@ -578,7 +578,7 @@ - +
{{ title }} {{ title }}
@@ -875,7 +875,7 @@ if (URL) { {{ form_field.hidden_tag() }} {% if form_field.object_data and form_field.object_data.id %}
- +
{{ render_field_with_errors(form_field.delete_flag, style="width: fit-content; flex: initial;") }} {% endif %} diff --git a/project/templates/developer/read.html b/project/templates/developer/read.html index f652518..d1bd1d2 100644 --- a/project/templates/developer/read.html +++ b/project/templates/developer/read.html @@ -9,7 +9,7 @@

API

Data download

@@ -21,7 +21,7 @@ No files available {% endif %} -
  • The data file format is part of the API spec. Watch for the *Dump models.
  • +
  • The data file format is part of the API spec. Watch for the *Dump models.
  • diff --git a/project/templates/example.html b/project/templates/example.html index 793d05a..c9fe4de 100644 --- a/project/templates/example.html +++ b/project/templates/example.html @@ -7,7 +7,7 @@ oveda - Terminkalender für Goslar und Hahnenklee

    Terminkalender für Goslar und Hahnenklee

    - {{ _('Create event suggestion') }} + {{ _('Create event suggestion') }}
    diff --git a/project/templates/manage/widgets.html b/project/templates/manage/widgets.html index b5aa168..21c3d4c 100644 --- a/project/templates/manage/widgets.html +++ b/project/templates/manage/widgets.html @@ -31,11 +31,11 @@

    {{ _('Link, um Veranstaltungen vorzuschlagen') }}

    -

    Vorschau

    +

    Vorschau

    {{ _('URL für Infoscreen') }}

    -

    Vorschau

    +

    Vorschau

    {% endblock %} \ No newline at end of file diff --git a/project/templates/widget/event_date/list.html b/project/templates/widget/event_date/list.html index 124eb8e..7c3bbef 100644 --- a/project/templates/widget/event_date/list.html +++ b/project/templates/widget/event_date/list.html @@ -63,7 +63,7 @@ {{ date.event.admin_unit.name }} {% endif %} {{ date.event.event_place.name }} - +
    {% if date.event.photo_id %} @@ -95,7 +95,7 @@ {{ date.event.admin_unit.name }} {% endif %} {{ date.event.event_place.name }} - +
    diff --git a/project/templates/widget/event_suggestion/create.html b/project/templates/widget/event_suggestion/create.html index a524a15..db6c5d7 100644 --- a/project/templates/widget/event_suggestion/create.html +++ b/project/templates/widget/event_suggestion/create.html @@ -15,12 +15,16 @@ {{ render_cropper_header() }}