Skip to content

Commit

Permalink
Added 'closeText' option & bumped patch version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefox committed Sep 29, 2011
1 parent e399651 commit effbffb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ These are the supported options and their default values:
zIndex: 1, // Overlay z-index.
escapeClose: true, // Allows the user to close the modal by pressing `ESC`
clickClose: true, // Allows the user to close the modal by clicking the overlay
closeText: 'Close', // Text content for the close <a> tag.
showClose: true // Shows a (X) icon/link in the top-right corner
modalClass: "modal", // CSS class added to the element being displayed in the modal.
};
Expand Down
5 changes: 3 additions & 2 deletions jquery.modal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
A simple jQuery modal (https://github.com/kylefox/jquery-modal)
Version 0.2.3
Version 0.2.4
*/
(function() {

Expand Down Expand Up @@ -42,7 +42,7 @@
function show() {
center_modal(current_modal);
if(options.showClose) {
current_modal.closeButton = $('<a href="#close-modal" rel="modal:close" class="close-modal">Close</a>');
current_modal.closeButton = $('<a href="#close-modal" rel="modal:close" class="close-modal">' + options.closeText + '</a>');
current_modal.elm.append(current_modal.closeButton);
}
$elm.addClass(options.modalClass).addClass('current').show();
Expand All @@ -62,6 +62,7 @@
zIndex: 1,
escapeClose: true,
clickClose: true,
closeText: 'Close',
modalClass: "modal",
showClose: true
};
Expand Down
4 changes: 2 additions & 2 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 effbffb

Please sign in to comment.