Added 'record_helper' setting. New option for reload after applyChanges

This setting enabled a helper pop-up that assists with filling out MX
and SRV records. This option is toggleable on the Settings page.
This commit is contained in:
Ivan Filippov
2016-05-15 12:47:02 -06:00
parent 9f400b05e6
commit 0c694816e2
5 changed files with 105 additions and 7 deletions

View File

@ -73,15 +73,13 @@
$(".setting-toggle-button").click(function() {
var setting = $(this).prop('id');
applyChanges('','/admin/setting/' + setting + '/toggle')
location.reload();
applyChanges('','/admin/setting/' + setting + '/toggle', false, true)
});
// TODO: allow editing of value field
$(".setting-edit-button").click(function() {
var setting = $(this).prop('id');
applyChanges('','/admin/setting/' + setting + '/edit')
location.reload();
applyChanges('','/admin/setting/' + setting + '/edit', false, true)
});
</script>
{% endblock %}