Django

Code

Changeset 731

Show
Ignore:
Timestamp:
09/29/05 17:34:17 (3 years ago)
Author:
jacob
Message:

Fixed #576 - popups no longer show "save & continue" buttons. Thanks, Hein-Pieter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/admin/main.py

    r714 r731  
    524524        t.append('{%% if not is_popup %%}<input type="submit" value="Save and add another" name="_addanother" %s/>{%% endif %%}' % \ 
    525525            (ordered_objects and change and 'onclick="submitOrderForm();"' or '')) 
    526     t.append('<input type="submit" value="Save and continue editing" name="_continue" %s/>' % \ 
     526    t.append('{%% if not is_popup %%}<input type="submit" value="Save and continue editing" name="_continue" %s/>{%% endif %%}' % \ 
    527527        (ordered_objects and change and 'onclick="submitOrderForm();"' or '')) 
    528528    t.append('<input type="submit" value="Save" class="default" %s/>' % \