Carvalhar.com

This dialog window can be moved, resized, maximized, minimized, restored and closed with the 'x' icon.

This dialog window can be moved, resized, maximized, minimized, restored and closed with the 'x' icon.

This dialog window can be moved, resized, maximized, minimized, restored and closed with the 'x' icon.

This plugin is a modified copy of jQuery UI Dialog widget, adding minimize, restore and maximize buttons.

Open Dialogr 1 Open Dialogr 2 Open Dialogr 3

Usage

Well, use it as any normal dialog, but with one extra "r" at the end:

$(#dialog).dialogr();

You can use it with all jQuery UI Dialog options!

But jQuery Master Dialog adds two other options (when false the button doesn't appear):

$("#dialog").dialogr({maximized:false,minimized:false});

Off course, without minimize and restore buttons, it'll be the original UI Dialog again.

Download

Download jQuery Dialogr 2.1 (updated: December 2010)

Plugin requirements

Socialize

DeliciousFacebookTwitterStumble UponTechnoratiDiggGoogleRedd It

Credits

Developed by Carlos Carvalhar with the help of Ciro Anunciação, when they were working at PixFly, Brazil. Updated by Arnaud Lorenzi from Formaltis.

Old Versions

jQuery Dialogr 2.0 (jQuery 1.3.2 and jQuery UI 1.7.2)

jQuery Dialogr 1.0 (jQuery 1.3.2 and jQuery UI 1.7.2)


Known Bugs

1) Variables window.minimized and window.maximized should be stored at Dialogr instance, not at window object.

2) If you minimize the Dialogr and then close it, when you open it again the content height isn't calculated correctly.

3) With autoOpen: false the width/height aren't being respected. No problems with autoOpen: true.

Fixed Bugs

1) Passed options for Dialogr were not working at all. Fixed by Joseph Knapp

Notes

This plugin works with IE7, IE8, Chrome, Safari and Mozilla/Firefox. Don't ask about IE6, we don't care anymore.

This code was based in two resources:

jQuery Dialog – Melhorias Interessantes/Improvements (by Jackson Caset)

How to "properly" extend the jQuery UI Dialog widget? (by Marv4 and Scott González)

There is also another plugin that maybe you'd like to check:

http://hernan.amiune.com/labs/jQuery-Windows-Engine-Plugin/jQuery-Windows-Engine-Plugin.html (by Hernan Amiune)