Skip to content

Commit

Permalink
Make it possible for refiners to work even if API endpoint changes, u…
Browse files Browse the repository at this point in the history
…pdate demo (#547)
  • Loading branch information
BjarniRunar committed Apr 18, 2014
1 parent 484a4f0 commit a7295d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mailpile/jinjaextensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def _get_ui_elements(self, ui_type, state, context=None):
return copy.deepcopy(PluginManager().get_ui_elements(ui_type, ctx))

def _add_state_query_string(self, url, state, elem=None):
if not url:
url = state.get('command_url', '')
if '#' in url:
url, frag = url.split('#', 1)
frag = '#' + frag
Expand Down
1 change: 0 additions & 1 deletion plugins/demos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
"name": "demo_search",
"text": "Demo",
"description": "Demo search!!!",
"url": "/search/",
"url_args_remove": [["qr", ""]],
"url_args_add": [["qr", "demo"]],
"icon": "/static/img/demos.png"
Expand Down

0 comments on commit a7295d6

Please sign in to comment.