Jump to content


Photo

Double click to edit page


  • Please log in to reply
9 replies to this topic

#1 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 01 August 2012 - 03:23 PM

Was thinking of double click page to edit that page in the admin.

#2 Pete

Pete

    Administrator

  • Administrators
  • 1,756 posts
  • 658

  • LocationChester, England

Posted 01 August 2012 - 03:28 PM

That's a nice idea. I've just been getting used to this in LemonStand and I guess it wouldn't be massively difficult to implement, just not sure quite how you'd go about doing so in terms of which files to edit.

#3 yellowled

yellowled

    Sr. Member

  • Members
  • PipPipPipPip
  • 183 posts
  • 117

  • LocationEutin, Germany

Posted 01 August 2012 - 03:45 PM

If implemented in the core, it should be an option, not a default, I guess. Or at least, it should be possible to switch back to the "old" behaviour. (You'd be astonished how many people have difficulties performing a double-click.)

#4 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 01 August 2012 - 03:48 PM

Think I agree with you yellowled. Think you do a double click with a timer, than you could set the doubleclick time. Or set on 0, to disable it.

#5 Pete

Pete

    Administrator

  • Administrators
  • 1,756 posts
  • 658

  • LocationChester, England

Posted 01 August 2012 - 03:51 PM

It's a very good point, so I think this is definitely a candidate for a module rather than core functionality since it's a) up to the individual developer if they want to add it and b ) has some configurable elements as well. The timer idea would be a nice touch.

#6 Soma

Soma

    Hero Member

  • Moderators
  • 3,188 posts
  • 1745

  • LocationSH, Switzerland

Posted 01 August 2012 - 07:00 PM

It is already double click to edit. If you train some you get pretty fast with it.

@somartist | modules created | support me, flattr my work flattr.com


#7 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,523 posts
  • 848

  • LocationVihti, Finland

Posted 02 August 2012 - 02:02 AM

Soma you cheating on me? My fingers hurt...

#8 diogo

diogo

    Hero Member

  • Moderators
  • 1,995 posts
  • 1073

  • LocationPorto, Portugal

Posted 02 August 2012 - 02:49 AM

Second click has to be a bit for the right

#9 ryan

ryan

    Hero Member

  • Administrators
  • 5,771 posts
  • 3114

  • LocationAtlanta, GA

Posted 02 August 2012 - 11:10 AM

I tried to implement a double click to edit a long while back. jQuery has the dblclick() event, which makes it pretty easy to differentiate from a click() event. The problem is, I never could get it working. dblclick() would never fire for me. It might have just been a bug in jQuery at the time or something. Maybe worth trying again.

#10 Soma

Soma

    Hero Member

  • Moderators
  • 3,188 posts
  • 1745

  • LocationSH, Switzerland

Posted 02 August 2012 - 11:22 AM

Hmm. I used double click feature in jstree http://www.jstree.com/ in a project and I think it's done using dblclick event. Never noticed any problems.

@somartist | modules created | support me, flattr my work flattr.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users