lw-bobbimartin / simplemodal

Automatically exported from code.google.com/p/simplemodal
0 stars 0 forks source link

Improve Plugin Compatibility: Allow additional dom tabbing #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Recently, we used QTip (http://craigsworks.com/projects/qtip/) with Simplemodal 
to achieve the design requirements. This was great, except for a tabbing bug 
that left us having to come up with a workaround that had it's own set of 
disadvantages (e.g. lots of code and odd ui behavior)

As such, I came up with an addition to Jquery Simplemodal that allows the 
developer to specify "allowed" parent DOM elements.

Please see attached in the watchTab method

Original issue reported on code.google.com by johntimo...@gmail.com on 15 Aug 2011 at 8:40

Attachments:

GoogleCodeExporter commented 9 years ago
Usage is as follows:

$viewElement.modal({
                    opacity: 30,
                    close: true,
                    closeHTML: "",
                    escClose: true,
                    overlayClose: true,
                    onShow: function(e) {
                        $(e.container).css('height', 'auto')
                    },
                    allowTabParents: ['.ui-tooltip']
            });

Original comment by johntimo...@gmail.com on 15 Aug 2011 at 8:49

GoogleCodeExporter commented 9 years ago
I think the term "permitted" is more clear that "allowed." I still don't like 
the result of 'permittedTabParents'

Original comment by johntimo...@gmail.com on 21 Aug 2011 at 8:02