CHANGELOG: ver 1.5.5 (09/06/2007) Added: Modalbox can override standard alert messages. Use overrideAlert to toggle this feature on/off. Added: Added an option to toggle animated transitions on/off [#98] Added: Proper node clone IDs cleanup on hide [#120]. Unit-tests changes accordingly Changed: Default transition intervals changed Changed: _update method re-factored Changed: _findFocusableElements method re-factored to exclude hidden inputs Changed: Moving focus in direct and reverse order (by Shift+TAB combo) Fixed: On resize modalbox contents were stretched to 90px if height wasn't defined Fixed: Overlay initial flicker effect removed [#104] Fixed: Evaluating javascripts after loading the content fixed [#100] Fixed: Re-factored SELECTs toggle method for IEs [#111] Fixed: Focusing by TAB key issue in Safari [#3] Fixed: Potential issues with DOM node content type then using IDs from parent node [#120] Fixed: Content isn't being shown in IE6 then transitions are switched off Fixed: Added expression in resize effect [#114] ver 1.5.4 (07/16/2007) Added: Overlay opacity parameter added Added: ModalBox now accepts HTML (plain & object) as a content parameter [#21] Added: Defining height now switches ModalBox to 'scrollable' viewport state [#26] Added: ModalBox resizes automatically to fit content height [#26] Added: Check for initialized MB on hide attempt Added: Activate and Deactivate methods added for easily activation/deactivation of MB interactions Fixed: PageUp/Down/Home/End buttons doesn't work on input elements [#58] Fixed: Resize method don't resize anymore for a less then a content height. If the content height defined, this value is being used to calculate minimal resize height Fixed: Resizing works correctly in IE6 [#77] Fixed: Removed non-standard opacity rules from CSS [#57] Changed: Options saves between sequences of windows. [was buggy. now fixed] Changed: Title made not mandatory parameter and moved to options. !!! IMPORTANT: Changed APIs !!! [#83] Changed: Changelog separated from the source code Changed: Basic MB visual style changed Changed: 'isInitialized' property renamed to 'initialized' ver 1.5.3 (04/21/2007) Added: Unit and functional tests added Added: "Close window" text can be customized through the optional parameter 'closeString' [#41] Added: Custom effects duration in parameters [#21] Added: Ajax request method can be changed trough options (method) [#54] Fixed: Executing JS from MB content window fixed Fixed: MSIE horizontal scrolling after closing MB Fixed: Resize method now resize correctly [#42] Fixed: Loading string container doesn't appear on update (appears only loadingString text) Fixed: Bug with unfired afterLoad callback and not executed helpers methods due to bind(window) for evalScript section in loadContent method Fixed: Bug with beforeLoad callback return value (content loaded even with return value == false) ver 1.5.2 (02/26/2007) Fixed: Scrolling by "space" key disabled then MB is visible Fixed: Scrolling by navigational keys (Up / Down / PageUp / PageDown / Home / End) keys disabled then MB is visible Changed: Keyboard handlers implementation re-factored [#9, #11] Changed: Markup generated by modalbox optimized Changed: Scrolling on top removed for all modern browsers except IE6 and lower [#1, #9, #11] ver 1.5.1 (02/15/2007) Added: Callback 'beforeLoad' fired right before loading MB content. If the callback function returns false, loading will skipped. Changed: Implementation of callbacks calls changed. Callbacks now removes after execution. Callbacks now have a return value (true | false). Default is true. Fixes: Issue 2 (http://code.google.com/p/modalbox/issues/detail?id=2&can=1&q=) ver 1.5: (02/02/2007) Added: URL parameters are now passing to AJAX.Request. Use postOptions to pass parameters Added: Loading message can be customized through options. Use loadingString option Added: Script.aculo.us 1.64 and prototype 1.5rc1 support Added: Callbacks added on first showing, updating, loading content, closing modalbox Added: Callback can be passed through hide method Added: resize method resize modalbox without loading any content into it Changed: Evaluating contained scripts (striping HTML comments) Changed: Appearing of overlay is now animated Changed: Attaching events on window and overlay Changed: Method hide now get the callbacks as a parameter Changed: Inititalization redone with Builder class Changed: Minor fixes and refactoring done Changed: Focus loop engine redone Changed: self variables replaced to bind(this) functions Fixed: Scrolling to initial scroll position after closing MB Fixed: Fixed bug in IE with body's overflow auto ver 1.4: (06/20/2006) Added: Core definitions rewriten. Modalbox can now be accessed thorugh Modalbox object with public methods show and hide Added: License added Changed: kbdHandler method is now public, so it can be stopped from other functions Fixed: Stopping of event observing in hide method Fixed: Hiding selects for IE issue (was applied on element ID) Removed: Redundant 'globalMB' global variable removed Removed: Scroll window events observerving Removed: Redundant effect ScalyTo Issue: IE display bug then hidding scrollbars. Document body should have zero margins ver 1.3: (06/18/2006) Added: ModalBox will now get focus after opening Added: Keystrokes handler added (Tab key is looped on ModalBox and closing ModalBox by pressing Esc) Added: Window scrolling disabled (known issue: content jupms on top then opening ModalBox) Fixed: All dependent event handlers now unloads then closing ModalBox Fixed: SELECT element hiding function executes now only in MSIE Fixed: 'Close' button has now href attribute to receive focus Fixed: Click on 'Close' button doesn't adds an href value to URL string ver 1.2: Added: Global variable 'globalMB' added to the file. Use this variable to acces one instance of ModalBox and call methods on it ver 1.1: Added: Added SELECT elements hiding for IE (should be rewriten later) ver 1.0: Added: Core class description Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Andrey Okonetchnikov nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * http://www.opensource.org/licenses/bsd-license.php See scriptaculous.js for full scriptaculous licence