/[drupal]/contributions/modules/img_insert/img_insert.js
ViewVC logotype

Contents of /contributions/modules/img_insert/img_insert.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Nov 3 17:14:17 2007 UTC (2 years ago) by msameer
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/javascript
Initial import
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 );

  ViewVC Help
Powered by ViewVC 1.1.2