plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Dropdown does not work with parameter raw=true

Open aspriya opened this issue 9 years ago • 6 comments

What happened just before the problem occurred

Without login in I was reading a wiki page which had a query string parameter raw=true. And then only remembered I should login to see some features of inline-markdown-editor work. But the dropdown link does not work for me to login. Once logged in without the parameter, it still does not work with raw=true parameter.

Relevant URLs

https://publiclab.org/wiki/sandbox?raw=true

aspriya avatar May 25 '17 16:05 aspriya

After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page too. @jywarren Can you have a look at this ?

ananyo2012 avatar May 27 '17 20:05 ananyo2012

Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.

On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:

After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .

jywarren avatar May 27 '17 20:05 jywarren

I guess I never opened one. I had been testing code at the point where I do the "require('jquery')" step but couldn't get tests to pass. It seemed like quite a tough problem!

On May 27, 2017 4:26 PM, "Jeffrey Warren" [email protected] wrote:

Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.

On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:

After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .

jywarren avatar May 27 '17 20:05 jywarren

But we should open an issue over there and ask for help! https://github.com/publiclab/PublicLab.Editor/issues

On May 27, 2017 4:30 PM, "Jeffrey Warren" [email protected] wrote:

I guess I never opened one. I had been testing code at the point where I do the "require('jquery')" step but couldn't get tests to pass. It seemed like quite a tough problem!

On May 27, 2017 4:26 PM, "Jeffrey Warren" [email protected] wrote:

Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.

On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:

After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .

jywarren avatar May 27 '17 20:05 jywarren

Ok I will open an issue there and link to this one. So this can be closed here.

ananyo2012 avatar May 27 '17 20:05 ananyo2012

Thanks Ananyo!!!

On May 27, 2017 4:38 PM, "Ananyo Maiti" [email protected] wrote:

Ok I will open an issue there and link to this one. So this can be closed here.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304475316, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ5FqAiIAYe5yVcpZ6UVj_yC4wd5cks5r-InDgaJpZM4NmmWx .

jywarren avatar May 27 '17 20:05 jywarren