Last change
on this file since 1591 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
692 bytes
|
Rev | Line | |
---|
[1] | 1 | ## Script (Python) "switchOverlays" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters= |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | |
---|
| 11 | return """ |
---|
| 12 | <script type="text/javascript"> |
---|
| 13 | //<![CDATA[ |
---|
| 14 | |
---|
| 15 | function getData(){ |
---|
| 16 | var ul = document.getElementById('listOverlays'), result = {}; |
---|
| 17 | if ((ul != null) && (ul.getElementsByTagName('INPUT').length > 0)) { |
---|
| 18 | var boxes = ul.getElementsByTagName('INPUT'); |
---|
| 19 | result['boxes'] = boxes; |
---|
| 20 | for (var i=0; i < boxes.length; i++) result[boxes[i].id.replace(/Box$/, '')] = boxes[i].checked; |
---|
| 21 | } |
---|
| 22 | else return false; |
---|
| 23 | return result |
---|
| 24 | }; |
---|
| 25 | |
---|
| 26 | registerEventListener(window, 'unload', GUnload); |
---|
| 27 | |
---|
| 28 | //]]> |
---|
| 29 | </script> |
---|
| 30 | """ |
---|
Note: See
TracBrowser
for help on using the repository browser.