source: extensions/GMaps/js/gmapsInfoWindow.js @ 12213

Last change on this file since 12213 was 12213, checked in by grum, 13 years ago

fix bugs
bug:2042 - Category map is not available if option "apply to subcategories" is not selected

File size: 5.2 KB
Line 
1/**
2 * -----------------------------------------------------------------------------
3 * file: gmapsInfoWindow.js
4 * file version: 1.0.0
5 * date: 2011-09-23
6 */
7
8/*
9  <div id='iGMapsInfoWindow' style='display:none;'>
10    <div id='iGMapsInfoWindowContent'>
11      <div id='iGMIWC_title'>Titre de la photo</div>
12
13      <table id='iGMIWC_thumb'>
14        <tr>
15          <td style='width:28px;'><div id='iWALeft' ></div></td>
16          <td>
17            <img id='iGMIWC_img' src=''>
18          </td>
19          <td style='width:28px;'><div id='iWARight' ></div></td>
20        </tr>
21      </table>
22
23      <div id='iGMIWC_picnum'>0/0 photo</div>
24
25      <div id='iGMIWC_showcat' style='display:none;'>
26        <span>{'gmaps_i_show_this_picture_in'|@translate}</span>
27        <ul id='iGMIWC_showcatList'>
28        </ul>
29      </div>
30    </div>
31  </div>
32*/
33function initInfoWindow()
34{
35  if($('#iGMapsInfoWindow').length==0)
36  {
37    $('body').append($('<div/>',
38                      {
39                        id:'iGMapsInfoWindow',
40                        css:{display:'none'},
41                      }
42                    ).append($('<div/>',
43                                {
44                                  id:'iGMapsInfoWindowContent'
45                                }
46                              ).append($('<div/>',
47                                          {
48                                            id:'iGMIWC_title',
49                                            html:'(title)'
50                                          }
51                                        )
52                                      ).append($('<table/>',
53                                                  {
54                                                    id:'iGMIWC_thumb'
55                                                  }
56                                                ).append($('<tr/>')
57                                                          .append($('<td/>',
58                                                                    {
59                                                                      css:{width:'28px'}
60                                                                    }
61                                                                   ).append($('<div id="iWALeft"/>')
62                                                                           )
63                                                                 )
64                                                          .append($('<td/>').append($('<img/>',
65                                                                                        {
66                                                                                          id:'iGMIWC_img',
67                                                                                          src:''
68                                                                                        }
69                                                                                      )
70                                                                                    )
71                                                                 )
72                                                          .append($('<td/>',
73                                                                    {
74                                                                      css:{width:'28px'}
75                                                                    }
76                                                                  ).append($('<div id="iWARight">')
77                                                                          )
78                                                                )
79                                                        )
80                                              )
81                                     .append($('<div/>',
82                                                {
83                                                  id:'iGMIWC_picnum',
84                                                  html:'0/0 photo'
85                                                }
86                                              )
87                                            )
88                                     .append($('<div/>',
89                                                {
90                                                  id:'iGMIWC_showcat',
91                                                  css:{display:'none'}
92                                                }
93                                              ).append($('<span/>',
94                                                          {
95                                                            html:gmaps.lang.gmaps_i_show_this_picture_in
96                                                          }
97                                                        )
98                                                      )
99                                                .append($('<ul/>',
100                                                          {
101                                                            id:'iGMIWC_showcatList'
102                                                          }
103                                                        )
104                                                      )
105                                            )
106                            )
107                  );
108  }
109}
110
111
112
Note: See TracBrowser for help on using the repository browser.