provide a refresh link since the refresh button brings up a POST dialog

This commit is contained in:
zzz
2009-07-17 16:53:53 +00:00
parent bc49f51dbb
commit 70a17ecfaf

View File

@ -19,12 +19,12 @@ public class ConfigUIHandler extends FormHandler {
private void saveChanges() { private void saveChanges() {
if (_config == null) if (_config == null)
return; return;
if (_config.equals("default")) if (_config.equals("default")) // obsolete
_context.router().removeConfigSetting(CSSHelper.PROP_THEME_NAME); _context.router().removeConfigSetting(CSSHelper.PROP_THEME_NAME);
else else
_context.router().setConfigSetting(CSSHelper.PROP_THEME_NAME, _config); _context.router().setConfigSetting(CSSHelper.PROP_THEME_NAME, _config);
if (_context.router().saveConfig()) if (_context.router().saveConfig())
addFormNotice("Theme change successfully saved (refresh page to view)"); addFormNotice("Theme change successfully saved (<a href=\"configui.jsp\">refresh page to view</a>)");
else else
addFormNotice("Error saving the configuration (applied but not saved) - please see the error logs"); addFormNotice("Error saving the configuration (applied but not saved) - please see the error logs");
} }