| 1 |
//-*-c-*-
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
$(document).ready(function() {
|
| 5 |
$("form").attr("action", $(document).attr("location"));
|
| 6 |
});
|
| 7 |
|
| 8 |
$(document).ready(function(){
|
| 9 |
$("a").click(function() {
|
| 10 |
var $kids = $(this).children();
|
| 11 |
jQuery.each($kids, function() {
|
| 12 |
if ($(this).is("img")) {
|
| 13 |
var $html = $(this).parent().parent().html();
|
| 14 |
jQuery.each(window.parent.$("textarea"), function() {
|
| 15 |
if ($(this).is("#edit-body")) {
|
| 16 |
//insert_at_cursor($(this), $html);
|
| 17 |
$(this).val($(this).html()+$html);
|
| 18 |
}
|
| 19 |
}
|
| 20 |
);
|
| 21 |
}
|
| 22 |
}
|
| 23 |
);
|
| 24 |
return false;
|
| 25 |
}
|
| 26 |
);
|
| 27 |
}
|
| 28 |
);
|