| Revision 2614:db6f6a1f4f25,
358 bytes
checked in by Nicolas <nikrou77@…>, 12 years ago
(diff) |
|
Move legacy editor to a plugin. First step for alternate editors.
Addresses #1896
|
| Line | |
|---|
| 1 | $(function() { |
|---|
| 2 | $('#link-insert-cancel').click(function() { |
|---|
| 3 | window.close(); |
|---|
| 4 | }); |
|---|
| 5 | |
|---|
| 6 | $('#form-entries tr>td.maximal>a').click(function() { |
|---|
| 7 | // Get post_id |
|---|
| 8 | var tb = window.opener.the_toolbar; |
|---|
| 9 | var data = tb.elements.link.data; |
|---|
| 10 | |
|---|
| 11 | data.href = tb.stripBaseURL($(this).attr('title')); |
|---|
| 12 | |
|---|
| 13 | tb.elements.link.fncall[tb.mode].call(tb); |
|---|
| 14 | window.close(); |
|---|
| 15 | }); |
|---|
| 16 | }); |
|---|
Note: See
TracBrowser
for help on using the repository browser.