CC-3718: Please enable user to input the mail server settings

-fixed soundcloud settings from collapsing if there are form input errors
This commit is contained in:
denise 2012-06-11 15:18:12 -04:00
parent d498c51814
commit 5b9add360c
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<?php if (!$this->isSaas) { ?>
<h3 class="collapsible-header" id="email-server-heading"><span class="arrow-icon"></span>Email / Mail Server Settings</h3>
<div class="collapsible-content" id="soundcloud-settings" style="display: none;">
<div class="collapsible-content" id="email-server-settings" style="display: none;">
<?php echo $this->element->getSubform('preferences_email_server') ?>
</div>
<?php } ?>

View File

@ -5,6 +5,11 @@ function showErrorSections() {
$(window).scrollTop($("#soundcloud-settings .errors").position().top);
}
if($("#email-server-settings .errors").length > 0) {
$("#email-server-settings").show();
$(window).scrollTop($("#email-server-settings .errors").position().top);
}
if($("#livestream-settings .errors").length > 0) {
$("#livestream-settings").show();
$(window).scrollTop($("#livestream-settings .errors").position().top);