1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 18:54:29 +01:00

redirecting to the edit page once submit modify

This commit is contained in:
kakwa 2015-06-23 23:58:17 +02:00
parent 5f9758832f
commit 314e0fc02b

View File

@ -590,6 +590,8 @@ class LdapCherry(object):
if cherrypy.request.method.upper() == 'POST': if cherrypy.request.method.upper() == 'POST':
notification = "<script type=\"text/javascript\">$.notify('User Modify')</script>" notification = "<script type=\"text/javascript\">$.notify('User Modify')</script>"
self._modify(params) self._modify(params)
referer = cherrypy.request.headers['Referer']
raise cherrypy.HTTPRedirect(referer)
else: else:
notification = '' notification = ''