Failure

User tests: Successful: Unsuccessful:

avatar piotrmocko
piotrmocko
28 Mar 2013

When you use in Joomla
JHTML::('behavior.modal');
and
JHTML::
('behavior.modal', 'a.test', array('parse' => false, 'fullScreen'=> true));

it would initialize SqueezeBox twice
and it would also create twice HTML tags: div#sbox-overlay and div#sbox-window

Here is one of many cases when it would not work correct.
When you try to run JavaScript

SqueezeBox.open($('element'), {
onOpen: function(){
$('element_container').inject( $('sbox-content') );
}
});

then it would insert HTML to first copy of SqueezeBox
but second copy of SqueezeBox would be opened with empty content.

SqueezeBox is not a class but a single instance of object which use static IDs.
This correction will prevent from loading HTML code twice.

avatar piotrmocko piotrmocko - open - 28 Mar 2013
avatar nicksavov
nicksavov - comment - 28 Mar 2013

Thanks for coding this, Piotr!

While we’re transitioning to a new integrated tracker, could you report the issue on our current main tracker at JoomlaCode and cross-reference each with a link to other?
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103

Alternatively, let me know if you’d like me to create it for you and I can go ahead and do that.

Thanks in advance and thanks again for coding this, Piotr!

avatar nicksavov
nicksavov - comment - 29 Mar 2013

Thanks Piotr! :)

avatar brianteeman
brianteeman - comment - 27 Jul 2014

Closed as per the comment on the tracker

avatar brianteeman brianteeman - close - 27 Jul 2014

Add a Comment

Login with GitHub to post a comment