|
Revision 1309, 0.6 kB
(checked in by ddavis, 23 months ago)
|
|
standarize js comment tag escape. BugzID:58265
|
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <script type="text/javascript"> |
|---|
| 2 | /* <![CDATA[ */ |
|---|
| 3 | function getByID (d, n) { |
|---|
| 4 | if (d.getElementById) |
|---|
| 5 | return d.getElementById(n); |
|---|
| 6 | else if (d.all) |
|---|
| 7 | return d.all[n]; |
|---|
| 8 | } |
|---|
| 9 | var d = window.opener.document; |
|---|
| 10 | d.cfg_form.cc_license.value = '<mt:var name="license_code" escape="html">'; |
|---|
| 11 | var e = getByID(d, 'cc-license-name'); |
|---|
| 12 | if (e) |
|---|
| 13 | e.innerHTML = '<mt:var name="license_name" escape="html">'; |
|---|
| 14 | if (e = getByID(d, 'no-license')) |
|---|
| 15 | e.style.display = 'none'; |
|---|
| 16 | if (e = getByID(d, 'has-license')) |
|---|
| 17 | e.style.display = 'block'; |
|---|
| 18 | window.close(); |
|---|
| 19 | /* ]]> */ |
|---|
| 20 | </script> |
|---|