Releases: HTMLGuyLLC/jAlert
Added fullscreen option
Use fullscreen: true/false to stretch the content to fit the page.
There is a bug with a vertical scrollbar that goes away when you resize the page.
If someone wants to tackle that, please do!
Fixed dupe button handlers, added dist folder, and git hook auto-compile instructions
Removed borders on no_title alerts, and iframes - re-added box-shadow
greatly improved the look of alerts on white background + videos/iframes/photos with noPadContent: true
Added noPadContent option
and adjusted comments and versioning in files
Fix for positioning, fix for iframe, and added background blurring
4.03 fix iframe height, fix positioning, add blur background option
Fix for body background height to match jAlert height (when set in size object)
Improved the animation by adding overflow: hidden to the body before showing the alert
If you pass size as an object of height and width, the body will now stretch to the height.
Example: $.jAlert({ 'title':'wow, sweet', 'content':'blah', 'size':{'height':'400px', 'width':'200px'} });
FIX for version 4's data-jAlert
Fix for the data-jAlert attributes.
When running $.jAlert('attach') multiple times (for dynamically added content), it was attaching multiple callbacks.
Also added the alias "color" for "theme.
Version 4 release! TONS of improvements
New data-jAlert attributes - use $.jAlert('attach') - Example: Click me!
New "size" alias "width"
New - pass a "px" or "%" width as the "width" or "size"
New "size" aliases - Use the full name instead of abbrev ('small' vs 'sm')
New - pass object as "width" or "size" containing height and width { 'height': '300px', 'width': '300px' }
New default font Arial (to go back to the same as your site/theme, just remove from the CSS
New backbone with tons of improvements
New
New - if you pass an id selector as the content, it'll grab the content of that element (if it exists). For instance content: '#mydiv'
New - if you accidentally use a lowercase version of an option, it'll still work - had to include this because data attributes are automatically made lowercase in some browsers.
New design, new colors, new close button (round)
Flattened design, added new themes, added "auto" size, added round close button, now removes focus from focused element on open to prevent hitting buttons over and over again causing a bunch of popups
Fixes for IE7, Forced focus change, fixed options
Options were being overridden. It wasn't noticeable because when you overwrite most options, it doesn't change anything (since they were used just to render the alert..such as title and theme), however, the callback ones like closeOnClick and closeOnEsc were being overwritten by each new alert. I fixed this by setting up an object with a key per jAlert ID that is filled with the options. After popping up the alert, any callbacks can now use the ID to access the options. I'm not really a fan of this, but it works.This version MAY introduce new bugs since that was such a big change and I haven't had time to test every single thing, but odds are that this is good to be used since I've tested the main functionality.