Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDIT an item #60

Closed
4 tasks done
nelsonic opened this issue Aug 11, 2018 · 9 comments
Closed
4 tasks done

EDIT an item #60

nelsonic opened this issue Aug 11, 2018 · 9 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Aug 11, 2018

as a user
I want to edit a todo list item
so that I can change a mistake or update the copy

@nelsonic
Copy link
Member Author

image

@nelsonic
Copy link
Member Author

todo-edit-html

nelsonic added a commit that referenced this issue Aug 11, 2018
@nelsonic
Copy link
Member Author

nelsonic commented Aug 11, 2018

Sample code for Double Click Event Handler:

<div onclick="doubleclick(this, function(){alert('single')}, function(){alert('double')})">click me</div>
<script>
  function doubleclick(el, onsingle, ondouble) {
    if (el.getAttribute("data-dblclick") == null) {
      el.setAttribute("data-dblclick", 1);
      setTimeout(function () {
        if (el.getAttribute("data-dblclick") == 1) {
          onsingle();
        }
        el.removeAttribute("data-dblclick");
      }, 300);
    } else {
      el.removeAttribute("data-dblclick");
      ondouble();
    }
  }
</script>

via: https://stackoverflow.com/a/16033129/1148249

@nelsonic
Copy link
Member Author

nelsonic commented Sep 5, 2018

image

image

@nelsonic
Copy link
Member Author

nelsonic commented Sep 6, 2018

edit-double-click-test-failing

@nelsonic
Copy link
Member Author

nelsonic commented Sep 6, 2018

edit-double-click-test-pass

@nelsonic
Copy link
Member Author

nelsonic commented Sep 6, 2018

edit-item-not-double-click

@nelsonic
Copy link
Member Author

nelsonic commented Sep 6, 2018

save-blank-title-test-failing

@nelsonic
Copy link
Member Author

nelsonic commented Sep 6, 2018

save-blank-title-test-pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant