how do I disable click on item

Development-related discussion, including bundled plugins
AMA3
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 11 Apr 2013, 17:49

how do I disable click on item

Postby AMA3 » 11 Apr 2013, 18:00

Hi everyone,

I'm a little bit click-happy so I would like to prevent an item from being marked read when I click on it. My guess is that I have to disable a click handler for elements with class "cdm" or possibly with ID beginning "RROW-", but I've searched the code for "click" and can't find such a thing.

Can you please point me in the right direction?

Thanks in advance for any help.

AMA3

koalabear7410
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 10 Apr 2013, 05:09

Re: how do I disable click on item

Postby koalabear7410 » 12 Apr 2013, 01:05


User avatar
idoxlr8
Bear Rating Trainee
Bear Rating Trainee
Posts: 46
Joined: 25 Mar 2013, 20:04
Location: Texas, USA
Contact:

Re: how do I disable click on item

Postby idoxlr8 » 12 Apr 2013, 03:29


AMA3
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 11 Apr 2013, 17:49

Re: how do I disable click on item

Postby AMA3 » 12 Apr 2013, 03:59


koalabear7410
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 10 Apr 2013, 05:09

Re: how do I disable click on item

Postby koalabear7410 » 12 Apr 2013, 04:24

idoxlr8, that is awesome! Thank you for sharing that link! I'm (obviously) really new here, and I haven't been able to dig into prior threads too much yet.

AMA3, you are my new hero.

For posterity:

I was actually able to hack in an ugly, but working, button up top with minimal effort. In my usual pattern, I'm at a keyboard using hotkeys to navigate up and down in a feed and to toggle read/unread. When I'm on a mobile device, sans keyboard, I need to be able to do the read/unread toggle in one click/touch.

I've found that in my hacked solution, the "current" article could be in a previously viewed feed, and since I'm toggling the current article, hilarity ensues. I'm hoping to see that idoxlr8's method solves for that (among other awesome things).

What I would prefer is a button on each individual post, in otherwise "empty" space, where I know that clicking that button is toggling for that post only. AMA3's solution appears to do just that: not only is the button streamed into the content at the bottom of the post, but the id of the post it belongs to is streamed right into the onclick handling code. I do see a right-click context menu on every post header that I presume does the same thing. However, I want one-click or one-touch, especially on mobile devices where I cannot reliably right-click.

So, thank you both!


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests