https://github.com/patternslib/pat-doclock
A pattern that allows document locking and unlocking for quaive
https://github.com/patternslib/pat-doclock
hacktoberfest javascript patternslib ui-components
Last synced: 8 months ago
JSON representation
A pattern that allows document locking and unlocking for quaive
- Host: GitHub
- URL: https://github.com/patternslib/pat-doclock
- Owner: Patternslib
- Created: 2017-05-22T09:22:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T00:48:58.000Z (over 3 years ago)
- Last Synced: 2025-10-08T21:56:40.591Z (9 months ago)
- Topics: hacktoberfest, javascript, patternslib, ui-components
- Language: JavaScript
- Homepage:
- Size: 2.22 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
README
# pat-doclock
A [Patternslib](http://patternslib.com) pattern.
For example:
```html
...
```
## Development
For standalone development run (installation and starting a server):
```shell
> make all
```
To clean up local directory (after running make all) run:
```shell
> 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.