Fixing #2353, data-on-close=REFRESH_PAGE is now honored
Replace switch-case with if statement
Merge pull request #2355 from spillevink/bugfix/reload_after_edit

Fixing #2353, data-on-close=REFRESH_PAGE is now honored