Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Jun 25, 2016
1 parent 2b164c6 commit 97ab85f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.1.0
* Add `appendTo` option (#238)

### 1.0.7
* Fixed getAnimationDuration

Expand Down
3 changes: 1 addition & 2 deletions dist/remodal-default-theme.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Remodal - v1.0.7
* Remodal - v1.1.0
* Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
* http://vodkabears.github.io/remodal/
*
Expand Down Expand Up @@ -52,7 +52,6 @@
/* Default theme styles of the modal dialog */

.remodal {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
margin-bottom: 10px;
Expand Down
3 changes: 1 addition & 2 deletions dist/remodal.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Remodal - v1.0.7
* Remodal - v1.1.0
* Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
* http://vodkabears.github.io/remodal/
*
Expand Down Expand Up @@ -83,7 +83,6 @@ html.remodal-is-locked {
outline: none;

-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
}
Expand Down
14 changes: 10 additions & 4 deletions dist/remodal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Remodal - v1.0.7
* Remodal - v1.1.0
* Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
* http://vodkabears.github.io/remodal/
*
Expand Down Expand Up @@ -79,7 +79,8 @@
closeOnCancel: true,
closeOnEscape: true,
closeOnOutsideClick: true,
modifier: ''
modifier: '',
appendTo: null
}, global.REMODAL_GLOBALS && global.REMODAL_GLOBALS.DEFAULTS);

/**
Expand Down Expand Up @@ -506,6 +507,7 @@
*/
function Remodal($modal, options) {
var $body = $(document.body);
var $appendTo = $body;
var remodal = this;

remodal.settings = $.extend({}, DEFAULTS, options);
Expand All @@ -514,9 +516,13 @@

remodal.$overlay = $('.' + namespacify('overlay'));

if (remodal.settings.appendTo !== null && remodal.settings.appendTo.length) {
$appendTo = $(remodal.settings.appendTo);
}

if (!remodal.$overlay.length) {
remodal.$overlay = $('<div>').addClass(namespacify('overlay') + ' ' + namespacify('is', STATES.CLOSED)).hide();
$body.append(remodal.$overlay);
$appendTo.append(remodal.$overlay);
}

remodal.$bg = $('.' + namespacify('bg')).addClass(namespacify('is', STATES.CLOSED));
Expand All @@ -536,7 +542,7 @@
namespacify('is', STATES.CLOSED))
.hide()
.append(remodal.$modal);
$body.append(remodal.$wrapper);
$appendTo.append(remodal.$wrapper);

// Add the event listener for the close button
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="close"]', function(e) {
Expand Down
4 changes: 2 additions & 2 deletions dist/remodal.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remodal",
"version": "1.0.7",
"version": "1.1.0",
"description": "Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.",
"keywords": [
"jquery-plugin",
Expand Down

0 comments on commit 97ab85f

Please sign in to comment.