PDA

View Full Version : Vote plugin - Flag-it does not work



druellae
06-21-2010, 03:26 PM
I am in the process of moving from Hotaru 1.1 to 1.3. I realized an update of vote plugin to 2.1 and did the automatic update under Hotaru 1.3 installation.
Later on, I realized "Flag it" does not function anymore.
In other words, clicking on it has no visual effect or anything to show/hide alert selections.

I am not sure if it worked under vote 2.0 or even 1.9. I tried to see the difference with 2.0 (uninstalled 2.1 and installed 2.0) and it did not work either. Obviouslly I could not get back to 1.9 because of the dependecy issue described under Vote plugin page.

Under my older installation of Hotaru 1.1 with vote 1.6, "Flag it" javascript worked fine.

Any help is appreciated.

Thank you,

Nick
06-21-2010, 03:38 PM
What's your url?

druellae
06-21-2010, 05:47 PM
Thanks for your reply.

But that site is sitting in protected VPN and you can not reach it.

I will investigate more on this.

druellae
06-21-2010, 06:42 PM
I edited vote.js:


# diff vote.js vote.js.Orig
36c36
< var target = $(this).parents('div').nextAll('div.show_post_extr as').children('div.alert_choices');
---
> var target = $(this).parents('div').next('div').children('div.a lert_choices');

And now it does show/hide actions with vote 2.1.

shibuya246
06-22-2010, 03:52 AM
I edited vote.js:


# diff vote.js vote.js.Orig
36c36
< var target = $(this).parents('div').nextAll('div.show_post_extr as').children('div.alert_choices');
---
> var target = $(this).parents('div').next('div').children('div.a lert_choices');

And now it does show/hide actions with vote 2.1.

Thanks. I have re-updated the vote plugin and changed as you have indicated. Thanks for finding this and also suggesting the solution. :)