-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking on theming preview triggers fileupload dialog #4829
Conversation
Signed-off-by: Morris Jobke <[email protected]>
@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @juliushaertl, @schiessle and @LukasReschke to be potential reviewers. |
apps/theming/js/settings-admin.js
Outdated
@@ -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(); |
There was a problem hiding this comment.
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
Signed-off-by: Joas Schilling <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #4829 +/- ##
============================================
+ Coverage 54.19% 54.19% +<.01%
Complexity 22149 22149
============================================
Files 1363 1363
Lines 84820 84820
Branches 1322 1322
============================================
+ Hits 45966 45970 +4
+ Misses 38854 38850 -4
|
Fixes a paper cut from #2672