pat-doclock

0.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i pat-doclock

    Weekly Downloads

    1

    Version

    0.0.1

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • pilz