changeset 582 | a38876c0793c |
parent 581 | 5e8fd89c02ea |
child 699 | c7d737202d59 |
581:5e8fd89c02ea | 582:a38876c0793c |
---|---|
6 // |
6 // |
7 // **** 1.1.4: DEPRECATED **** |
7 // **** 1.1.4: DEPRECATED **** |
8 // Replaced with Spry-based mechanism. |
8 // Replaced with Spry-based mechanism. |
9 // |
9 // |
10 |
10 |
11 function get_parent_form(o) |
|
12 { |
|
13 if ( !o.parentNode ) |
|
14 return false; |
|
15 if ( o.tagName == 'FORM' ) |
|
16 return o; |
|
17 var p = o.parentNode; |
|
18 while(true) |
|
19 { |
|
20 if ( p.tagName == 'FORM' ) |
|
21 return p; |
|
22 else if ( !p ) |
|
23 return false; |
|
24 else |
|
25 p = p.parentNode; |
|
26 } |
|
27 } |
|
28 |
11 |