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 %}
- {{ _('Show directions') }} + {{ _('Show directions') }}
{% endif %} @@ -578,7 +578,7 @@| {{ title }} | +{{ title }} |
*Dump models.*Dump models.