Jump to content

Double-clic on a page to edit it.


lenoir
 Share

Recommended Posts

I agree, and I actually have tried to implement this before. I could never get jQuery's double click event register and work here. I suppose it's because we are already using the click event. But if someone else figures out how to get both double click and click working for it, I think it would be worthwhile to have. 

  • Like 1
Link to comment
Share on other sites

Why so complicated? It's in jQuery

$('body').on("dblclick", function(){
    alert("double clicked");
});

Ah, just read again: click and double click on same. It does work with both.

Link to comment
Share on other sites

Maybe we don't need to complicate. Since a new page will open, we don't need to prevent the click action because it won't be seen. I did this change on ProcessPageList.js and it works pretty well:

//line: 403

$("a.PageListPage", $ul).click(clickChild)
    .dblclick(function(){
        window.open($(this).siblings('ul').find('li.PageListActionEdit a').attr('href'), "_self");
    });
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...