Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/theming/css/settings-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ div#theming_settings_msg {
display: inline-block;
}

#theming-preview-logo {
cursor: pointer;
}

#theming-preview {
width: 230px;
height: 140px;
Expand All @@ -97,6 +101,7 @@ div#theming_settings_msg {
text-align: center;
margin-left: 123px;
margin-top: 10px;
cursor: pointer;
}

#theming-preview img {
Expand Down
7 changes: 7 additions & 0 deletions apps/theming/js/settings-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ $(document).ready(function () {

$('#uploadlogo').fileupload(uploadParamsLogo);
$('#upload-login-background').fileupload(uploadParamsLogin);
// clicking preview should also trigger file upload dialog
$('#theming-preview-logo').on('click', function() {
$('#uploadlogo').click();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to stop propagate, otherwise clicking on the logo opens two file dialogs, one for logo one for background

});
$('#theming-preview').on('click', function() {
$('#upload-login-background').click();
});

$('#theming-name').change(function(e) {
var el = $(this);
Expand Down