Skip to content

Commit

Permalink
updated readme + events
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Aug 4, 2016
1 parent 22465f2 commit da517c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -66,16 +66,16 @@ window.kiln.plugins['my-plugin'] = function () {

**Events:**

* `save` - after a component is saved
* `schedule`
* `unschedule`
* `publish`
* `unpublish`
* `select` - after a component is selected
* `unselect`
* `add-selector` - after a selector is added to a component
* `form:open` - after a form is opened
* `form:close` - after a form is closed (whether or not data was changed)
* `save` (api response) — after a component is saved
* `schedule` (api response) — after a component/page is scheduled
* `unschedule` (api response) — after a component/page is unscheduled
* `publish` (api response) — after a page is published
* `unpublish` (api response) — after a page is unpublished
* `select` (selected component) — after a component is selected
* `unselect` (previously selected component) — after a component is unselected
* `add-selector` (el, options, parent data) — after a selector is added to a component
* `form:open` (created form) — after a form is opened
* `form:close` (form data) — after a form is closed (whether or not data was changed/saved)

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion services/forms/index.js
Expand Up @@ -219,7 +219,7 @@ function close() {
removeCurrentForm(container);
setEditingStatus(false); // Status as saved.
cleanMediumEditorDom();
window.kiln.trigger('form:close'); // closing form with no data
window.kiln.trigger('form:close', data);
}
}
return Promise.resolve();
Expand Down

0 comments on commit da517c3

Please sign in to comment.