Subversion Repositories My Stuff

Compare Revisions

Ignore whitespace Rev 1 → Rev 2

/trunk/JavaScripts/youtube_dialog.js
0,0 → 1,38
#######################################################################
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Author: Andrzej Kardaƛ
# License: GPLv3
# The full version of the licencse can be obtainted by visiting:
# http://www.gnu.org/licenses/gpl.html
#######################################################################
$.fx.speeds._default = 1000;
$(document).ready(function() {
$('a.film_link').each(function() {
var $link = $(this);
var $dialog = $('<div id="film_dialog"></div>')
.dialog({
autoOpen: false,
width: 660,
height: 'auto',
title: $link.attr('title'),
resizable: false,
modal: true,
show: 'blind',
hide: 'fold'
});
 
$link.click(function() {
$('#overlay').show();
$('#ajax-indicator').show();
$dialog.load($link.attr('href')+' #film',function(){
$('#ajax-indicator').hide();
$('#overlay').hide();
$dialog.dialog('open');
});
return false;
});
});
});
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property