Subversion Repositories My Stuff

Rev

Rev 2 | Rev 14 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 kardasa 1
/*#######################################################################
2 kardasa 2
# This script is distributed in the hope that it will be useful,
3
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5
# GNU General Public License for more details.
6
# Author: Andrzej Kardaƛ
7
# License: GPLv3
8
# The full version of the licencse can be obtainted by visiting:
9
# http://www.gnu.org/licenses/gpl.html
13 kardasa 10
#######################################################################*/
2 kardasa 11
$.fx.speeds._default = 1000;
12
$(document).ready(function() {
13
        $('a.film_link').each(function() {
14
                var $link = $(this);
15
                var $dialog = $('<div id="film_dialog"></div>')
16
                        .dialog({
17
                                autoOpen: false,
18
                                width: 660,
19
                                height: 'auto',
20
                                title: $link.attr('title'),
21
                                resizable: false,
22
                                modal: true,
23
                                show: 'blind',
24
                                hide: 'fold'
25
                        });
26
 
27
                $link.click(function() {
28
                        $('#overlay').show();
29
                        $('#ajax-indicator').show();
30
                        $dialog.load($link.attr('href')+' #film',function(){
31
                              $('#ajax-indicator').hide();
32
                              $('#overlay').hide();
33
                              $dialog.dialog('open');
34
                        });
35
                        return false;
36
                });
37
        });
38
});