Skip to content
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

Merged
merged 2 commits into from
May 12, 2017

Conversation

MorrisJobke
Copy link
Member

Fixes a paper cut from #2672

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke added design Design, UI, UX, etc. feature: theming papercut Annoying recurring issue with possibly simple fix. labels May 12, 2017
@MorrisJobke MorrisJobke added this to the Nextcloud 12.0 milestone May 12, 2017
@mention-bot
Copy link

@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.

@@ -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
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

Signed-off-by: Joas Schilling <coding@schilljs.com>
@codecov
Copy link

codecov bot commented May 12, 2017

Codecov Report

Merging #4829 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@             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
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Cache/Propagator.php 94.93% <0%> (-1.27%) 16% <0%> (ø)
core/js/js.js 61.78% <0%> (+0.56%) 0% <0%> (ø) ⬇️

@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 12, 2017
@MorrisJobke MorrisJobke merged commit 2289ccd into master May 12, 2017
@MorrisJobke MorrisJobke deleted the theming-preview-click branch May 12, 2017 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish design Design, UI, UX, etc. feature: theming papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants