Mark Mintoff My superpower is common sense

3Mar/110

Wrapped JQuery Show Dialog Revisited

As a follow up to this post, I have added extra functionality by utilizing the jquery-dialogextend extension. What is achieved is the ability to treat the JQuery Dialog very much like a regular window, with the option of Maximize and Minimize thrown in. Also, double-clicking the title bar maximizes the Dialog. Awesome! I wanted to create a seamless transition from my old code to the new code, in order to minimize things which I'd have to update. This is what I came up with: As you can see, it's exactly the same as it was before, with two new parameters; showMinimize and showMaximize; (which are completely optional) and a check for whether the function exists before executing it. This allows for a seamless transition. The icons I am using were drawn by me onto the existing JQueryUI Spritesheets and into the JQueryUI Stylesheet. And the CSS changes: That's all there really is to it! Enjoy!
VN:F [1.9.22_1171]
Rating: 4.0/5 (1 vote cast)
Wrapped JQuery Show Dialog Revisited, 4.0 out of 5 based on 1 rating
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.