summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-10-27 10:43:27 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-11-12 23:47:23 +0100
commitc6b167fcf290c415b8d1903237fb5405b7213405 (patch)
tree7cd04f9aefb7cf92fa6c5287e85e413450ba8318
parent83da2bf3963db3e4427bced3b4c0681e751e54da (diff)
downloadipsilon.git-c6b167fcf290c415b8d1903237fb5405b7213405.tar.gz
ipsilon.git-c6b167fcf290c415b8d1903237fb5405b7213405.tar.xz
ipsilon.git-c6b167fcf290c415b8d1903237fb5405b7213405.zip
Set newurl on admin actions to stay on the page
By setting newurl, the browser state is replaced with the base configuration URL, so that user actions like hitting reload do not end up trying to trigger another change or an enablement/disablement of a plugin. It also insures actions are not accidentally triggered when hitting the back button. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rwxr-xr-xipsilon/admin/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsilon/admin/common.py b/ipsilon/admin/common.py
index 3d5313a..530cb22 100755
--- a/ipsilon/admin/common.py
+++ b/ipsilon/admin/common.py
@@ -230,7 +230,8 @@ class AdminPlugins(AdminPage):
'message_type': message_type,
'available': plugins['available'],
'enabled': enabled,
- 'baseurl': self.url}
+ 'baseurl': self.url,
+ 'newurl': self.url}
if self.order:
targs['order_name'] = '%s_order_form' % self.name
targs['order_action'] = self.order.url