CC-4688: System -> Preferences: Please expand the Soundcloud settings if warning for wrong settings exists

-fixed
This commit is contained in:
denise 2012-11-12 11:45:26 -05:00
parent 8094a29c3f
commit ef8f8dfa75
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,4 @@
function showErrorSections() { function showErrorSections() {
if($("#soundcloud-settings .errors").length > 0) { if($("#soundcloud-settings .errors").length > 0) {
$("#soundcloud-settings").show(); $("#soundcloud-settings").show();
$(window).scrollTop($("#soundcloud-settings .errors").position().top); $(window).scrollTop($("#soundcloud-settings .errors").position().top);
@ -97,6 +96,7 @@ $(document).ready(function() {
var json = $.parseJSON(data); var json = $.parseJSON(data);
$('#content').empty().append(json.html); $('#content').empty().append(json.html);
setTimeout(removeSuccessMsg, 5000); setTimeout(removeSuccessMsg, 5000);
showErrorSections();
}); });
}); });