Skip to content

Commit

Permalink
Only add help-text to url field if it exists. Fixes bellroy#585.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglamine committed Sep 29, 2016
1 parent 872505d commit 8ba4fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/templates/newlink.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h1>${_("Submit post to %(site)s") % dict(site=c.site.name)}</h1>
setMessage(form.title, ${json(_('Enter a title.'))});
setMessage(form.tags, ${json(_('Enter tags separated by commas or spaces.'))});

%if thing.tabs.has_tab('article-field-pane'):
%if thing.tabs.has_tab('link-field-pane') and not thing.editing:
setMessage(form.url, ${json(_('Enter a url.'))});
%endif

Expand Down

0 comments on commit 8ba4fec

Please sign in to comment.