Rev 14 | 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; |
14 | kardasa | 12 | $.ajaxSettings.cache = false; |
2 | kardasa | 13 | $(document).ready(function() { |
14 | $('a.film_link').each(function() { |
||
15 | var $link = $(this); |
||
16 | var $dialog = $('<div id="film_dialog"></div>') |
||
17 | .dialog({ |
||
18 | autoOpen: false, |
||
19 | width: 660, |
||
20 | height: 'auto', |
||
21 | title: $link.attr('title'), |
||
22 | resizable: false, |
||
17 | kardasa | 23 | position: 'top', |
24 | modal: true, |
||
2 | kardasa | 25 | show: 'blind', |
26 | hide: 'fold' |
||
27 | }); |
||
28 | |||
29 | $link.click(function() { |
||
30 | $('#overlay').show(); |
||
31 | $('#ajax-indicator').show(); |
||
32 | $dialog.load($link.attr('href')+' #film',function(){ |
||
14 | kardasa | 33 | $('#ajax-indicator').hide(); |
34 | $('#overlay').hide(); |
||
2 | kardasa | 35 | $dialog.dialog('open'); |
36 | }); |
||
37 | return false; |
||
38 | }); |
||
39 | }); |
||
40 | }); |