Fixed #576 - popups no longer show "save & continue" buttons. Thanks, Hein-Pieter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3dd1d28c7f
commit
2425907eac
|
@ -523,7 +523,7 @@ def _get_submit_row_template(opts, app_label, add, change, show_delete, ordered_
|
|||
if not opts.admin.save_as or add:
|
||||
t.append('{%% if not is_popup %%}<input type="submit" value="Save and add another" name="_addanother" %s/>{%% endif %%}' % \
|
||||
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
|
||||
t.append('<input type="submit" value="Save and continue editing" name="_continue" %s/>' % \
|
||||
t.append('{%% if not is_popup %%}<input type="submit" value="Save and continue editing" name="_continue" %s/>{%% endif %%}' % \
|
||||
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
|
||||
t.append('<input type="submit" value="Save" class="default" %s/>' % \
|
||||
(ordered_objects and change and 'onclick="submitOrderForm();"' or ''))
|
||||
|
|
Loading…
Reference in New Issue