diff --git a/js/config.js b/js/config.js index e8777545b..4f4a89d73 100644 --- a/js/config.js +++ b/js/config.js @@ -678,6 +678,12 @@ $(function() { form.find('input[name=json]').val(window.localStorage['config']); } }); + + $('.click-hide-message').live('click', function(){ + var div = $(this); + div.hide().parent('.group').css('height', ''); + div.next('form').show(); + }); }); /** @@ -706,6 +712,10 @@ function savePrefsToLocalStorage(form) updatePrefsDate(); $('.localStorage-empty').hide(); $('.localStorage-exists').show(); + var group = form.parent('.group'); + group.css('height', group.height() + 'px'); + form.hide('fast'); + form.prev('.click-hide-message').show('fast'); }, complete: function() { submit.attr('disabled', false); diff --git a/prefs_manage.php b/prefs_manage.php index ebdecce49..4d972d495 100644 --- a/prefs_manage.php +++ b/prefs_manage.php @@ -174,6 +174,12 @@ PMA_printJsValue("PMA_messages['strSavedOn']", __('Saved on: __DATE__'));