momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
Cocoa ([personal profile] momijizukamori) wrote in [site community profile] dw_dev2014-06-29 05:15 pm

new style search - in need of Javascript help (probably)

So the new style search has been almost beta-ready on my hack for a while now (NB: you will need an account on my hack to see it), but I've been stuck on a front-end problem. The search runs, returns all the matching themes in the database - except when you click to look at the next page of themes (or any page other than the first returned) everything resets and shows none of the themes. I think this is a JS/AJAX-y thing with the inline display of new content but Javascript is basically arcane magic to me, so I'm not sure. The branch is up to date on Github.
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2014-06-30 09:33 am (UTC)(link)
In LJ::Widget::ThemeChooser.pm, try updating adding the advanced search flags to Customize.ThemeNav.updateContent

(haven't tested because I'd need to set up themes/workers first but that looks like the right starting place)
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2014-07-01 01:36 am (UTC)(link)

Hmm. Was it working in your other call to updateContent?

fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2014-07-01 02:08 am (UTC)(link)

Gotcha. And it doesn't help that this uses the old libraries so is particularly hard to work with. Hmmm.

Okay so basically when you click the link, it does a GET request to htdocs/tools/endpoints/widget.bml. Try debugging what gets posted/where that gets passed into; hopefully that helps!