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