1
0

Standardize select image from media db/show preview process.

This used to be two seperate processes for the category icon and
images selected in plugin/theme config. It has now been simplified
to use just one process, which also uses the same markup and JS.

This adds to the consistency of the UI/UX, but it also saves some
CSS and a lot of JS, most of the latter of the expensive kind that
modifies the DOM.
This commit is contained in:
Matthias Mees
2014-04-29 13:22:55 +02:00
parent 055d6cdcd7
commit 2475f952df
4 changed files with 26 additions and 55 deletions

View File

@ -964,6 +964,7 @@ input[type=checkbox],
.importer_data dd,
.form_buttons > input,
.js .media_choose label,
.quick_list ol > li {
margin-bottom: .75em;
}
@ -976,7 +977,7 @@ input[type=checkbox],
.serendipity_commentDirection,
.entry_info,
.pagination,
.media_choose .preview,
.media_choose figure,
.media_file_metadata dt,
#serendipity_comments_list details,
.configure_plugin .cke {
@ -1244,13 +1245,6 @@ summary {
max-width: 75%;
}
.media_choose .preview {
background-repeat: no-repeat;
height: auto;
margin: .75em 0;
max-width: 100%;
}
.editor_toolbar button,
.comment_data dt,
#serendipityScaleForm .form_field label {
@ -2140,8 +2134,8 @@ label .perm_name,
.no-js .toggle_comment_full,
.no-js #add_upload,
.no-js .choose_media,
.no-js #insert_image,
.no-js #category_preview #preview,
.no-js .media_choose figure,
.no-js #category_preview figure,
.no-js .media_show_info,
.no-js .media_rename,
.no-js .template_show_info,