3.0.0 • Published 2 years ago

@patternslib/pat-doclock v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

pat-doclock

A Patternslib pattern.

For example:

<form class="pat-doclock"
      data-pat-doclock="url: mock/toggle-lock.html"
>
    ...
</form>

Development

For standalone development run (installation and starting a server):

    > make all

To clean up local directory (after running make all) run:

    > make clean

Purpose

This pattern is Quaive specific and is meant to lock a document in order to prevent concurrent edits.

Every time a user starts typing or pastes content in a form that has the class pat-doclock, an ajax call to the url specified using the data-pat-doclock option is performed. When the form is replaced or the user leaves the page, the same url is called to unlock the document.

3.0.0-alpha.0

2 years ago

3.0.0

2 years ago

2.0.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago