From cc89e49ed39e67dee884c980433b54ba0e074db6 Mon Sep 17 00:00:00 2001 From: Dave Kerr Date: Mon, 30 Oct 2017 20:47:05 +0700 Subject: [PATCH] updated docs and changelog for the locationChangeSuccess event configuration --- CHANGELOG.md | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aa9141..05605d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.7.12 + +* Support for configuration of the `$locationChangeSuccess` event. Thanks [smalbs](https://github.com/smalbs). + ## v0.6.12 * When a model is opened, we blur any active element. Thanks [samx](https://github.com/samwx)! diff --git a/README.md b/README.md index 93d4da8..6cd1cdc 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ The `showModal` function takes an object with these fields: * `scope`: Optional. If provided, the modal controller will use a new scope as a child of `scope` (created by calling `scope.$new()`) rather than a new scope created as a child of `$rootScope`. * `bodyClass`: Optional. The custom css class to append to the body while the modal is open (optional, useful when not using Bootstrap). * `preClose`: Optional. A function which will be called before the process of closing a modal starts. The signature is `function preClose(modal, result, delay)`. It is provided the `modal` object, the `result` which was passed to `close` and the `delay` which was passed to close. +* `locationChangeSuccess`: Optional. Allows the closing of the modal when the location changes to be configured. If no value is set, the modal is closed immediately when the `$locationChangeSuccess` event fires. If `false` is set, event is not fired. If a number `n` is set, then the event fires after `n` milliseconds. #### The Modal Object