Skip to content

Commit

Permalink
added noPadContent option
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Stebner committed Jul 19, 2016
1 parent c06335c commit a59c833
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
20 changes: 16 additions & 4 deletions src/jAlert-v4.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/jAlert-v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@
classes.push(alert.classes);
}

if( alert.noPadContent )
{
classes.push('ja_no_pad');
}

/* If no title, add class */
if( !alert.title )
{
Expand Down Expand Up @@ -731,6 +736,7 @@
$.fn.jAlert.defaults = {
'title': false, //title for the popup (false = don't show)
'content': false, //html for the popup (replaced if you use image, ajax, or iframe)
'noPadContent': false, //remove padding from
'image': false, //adds a centered img tag
'imageWidth': 'auto', //defaults to max-width: 100%; width: auto;
'video': false, //adds a responsive iframe video - value is the "src" of the iframe
Expand Down
Loading

0 comments on commit a59c833

Please sign in to comment.