Skip to content

Commit

Permalink
Merge pull request #3012 from yakky/feature/fix_3009
Browse files Browse the repository at this point in the history
Refresh page on template change.
  • Loading branch information
digi604 committed Apr 7, 2014
2 parents 69307b8 + cc85bd0 commit 76faea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/cms_toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def add_page_menu(self):
active = self.page.template == path
if path == TEMPLATE_INHERITANCE_MAGIC:
templates_menu.add_break(TEMPLATE_MENU_BREAK)
templates_menu.add_ajax_item(name, action=action, data={'template': path}, active=active)
templates_menu.add_ajax_item(name, action=action, data={'template': path}, active=active,
on_success='REFRESH_PAGE')
current_page_menu.add_break(PAGE_MENU_SECOND_BREAK)

# advanced settings
Expand Down

0 comments on commit 76faea7

Please sign in to comment.