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

Fixed bug in advanced tagging menu #9726

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Conversation

Manasa2850
Copy link
Member

@Manasa2850 Manasa2850 commented Jun 2, 2021

Fixes #9724 (<=== Add issue number here)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@gitpod-io
Copy link

gitpod-io bot commented Jun 2, 2021

@Manasa2850
Copy link
Member Author

ezgif com-gif-maker

I've done href="javascript:window.location.reload(true)" so that the tag addition is reflected immediately. Else, we need to refresh the page manually to check if the tag is added or not.

@codecov
Copy link

codecov bot commented Jun 2, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@dea35c8). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9726   +/-   ##
=======================================
  Coverage        ?   82.10%           
=======================================
  Files           ?       98           
  Lines           ?     5928           
  Branches        ?        0           
=======================================
  Hits            ?     4867           
  Misses          ?     1061           
  Partials        ?        0           
<a class="dropdown-item" href="#" data-value="parent:">Link to a "parent" page (wikis only)</a>
<a class="dropdown-item" href="#" data-value="style:">Add style</a>
<a class="dropdown-item" href="#" data-value="lang:">Add Translation widget</a>
<a class="dropdown-item" href="javascript:window.location.reload(true)" data-value="parent:">Link to a "parent" page (wikis only)</a>
Copy link
Member

Choose a reason for hiding this comment

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

I think this may not work in Firefox, which is a little stricter on href javascript. You could put it in an onclick attribute, maybe?

@@ -29,7 +29,7 @@

$(document).ready(function(){

$( "#pt-list > li " ).each(function() {
Copy link
Member

Choose a reason for hiding this comment

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

ah cool, i see!

OK so i think you can actually add the reload within the function below then? to avoid the href usage... does that work? Thanks!

@codeclimate
Copy link

codeclimate bot commented Jun 3, 2021

Code Climate has analyzed commit 5fe5bcb and detected 0 issues on this pull request.

View more on Code Climate.

@Manasa2850
Copy link
Member Author

@jywarren I use Firefox and it works fine on my browser. But I'm adding it within the function to make the code less redundant!
Thanks!

@Manasa2850 Manasa2850 requested a review from jywarren June 3, 2021 07:46
Copy link
Contributor

@RuthNjeri RuthNjeri left a comment

Choose a reason for hiding this comment

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

This looks good to me. I think you have addressed all the feedback given 🎉 ... @jywarren?

@jywarren jywarren merged commit 431f586 into publiclab:main Jun 3, 2021
@jywarren
Copy link
Member

jywarren commented Jun 3, 2021

Great work!!!!

reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* fixed bug in advanced menu

* removed reload from href
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* fixed bug in advanced menu

* removed reload from href
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment