30000monkeys
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Simple Video Gallery] Player doesn't stop when closedOk this code had some problems, I found another (and simpler) solution:
.dialog({ 'dialogClass' : 'wp-dialog', 'modal' : true, 'autoOpen' : false, 'closeOnEscape' : true, 'title' : link.attr('title'), 'width' : 580, 'height' : 440, 'buttons' : { }, // FIX close: function() { var inrHTML = $(this).html(); $(this).empty().html(inrHTML); } // #FIX });Forum: Plugins
In reply to: [Simple Video Gallery] Player doesn't stop when closedSry for spamming 😀
I found a solution from those guys
So the code I needed looks like this:
jQuery(document).bind('dialogclose', function() { var vid = jQuery('.svg-video-object iframe[src*="youtube"]'); if ( vid.length > 0 ){ var src = vid.attr('src'); vid.attr('src', ''); vid.attr('src', src); } });Maybe you wanna patch it?
Anyways, resolved for me.
Wrote a Review now, 5 stars!
Forum: Plugins
In reply to: [Simple Video Gallery] Player doesn't stop when closed* happens in all ie versions and SRWare 31.0.1700.0.
Works fine in Firefox 26 though.
Viewing 3 replies - 1 through 3 (of 3 total)