Skip to content

Commit

Permalink
Would close #39 if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
zjr committed Apr 6, 2013
1 parent 3aba9bf commit 04e8fad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Because there can be only one modal active at a single time, there's no need to

$.modal.close();

_TODO: this should be changed so that when called on a specific element, the element is returned (normal jQuery fashion)._

Similar to how links can be automatically bound to open modals, they can be bound to close modals using `rel="modal:close"`:

Expand Down Expand Up @@ -215,4 +214,4 @@ jQuery Modal is distributed under the [MIT License](Learn more at http:https://opensou
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 3 additions & 1 deletion jquery.modal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
A simple jQuery modal (http:https://github.com/kylefox/jquery-modal)
Version 0.5.2
Version 0.5.3
*/
(function($) {

Expand Down Expand Up @@ -136,7 +136,9 @@
if (!current) return;
if (event) event.preventDefault();
current.close();
that = current.$elm;
current = null;
return that;
};

$.modal.resize = function() {
Expand Down
5 changes: 2 additions & 3 deletions jquery.modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04e8fad

Please sign in to comment.