Remember ML folder (#155)

This commit is contained in:
onli 2014-05-25 21:58:10 +02:00
parent a8b4f05de2
commit c291c5166d
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,8 @@
Version 2.0-beta3 () Version 2.0-beta3 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Remember selected media library folder
* Show upload-success or error with the ajax image uploader * Show upload-success or error with the ajax image uploader
* Fix preview entry exception (issue #119) * Fix preview entry exception (issue #119)

View File

@ -1399,6 +1399,16 @@ $(function() {
} }
{/if} {/if}
if ($('#serendipity_only_path').length > 0) {
if ($('#serendipity_only_path').val() != localStorage.getItem('serendipity_only_path')) {
$('#serendipity_only_path').val(localStorage.getItem('serendipity_only_path'));
$('#media_library_control').submit();
}
$('#serendipity_only_path').change(function() {
localStorage.setItem('serendipity_only_path', $('#serendipity_only_path').val());
});
}
// reopen detail element after spamblock action // reopen detail element after spamblock action
if ($('#serendipity_comments_list').length > 0 && window.location.hash && $('#' + window.location.hash.replace('#', '')).length > 0) { if ($('#serendipity_comments_list').length > 0 && window.location.hash && $('#' + window.location.hash.replace('#', '')).length > 0) {
$('#' + window.location.hash.replace('#', '')).find(".toggle_info").click(); $('#' + window.location.hash.replace('#', '')).find(".toggle_info").click();