Index: img_assist.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.css,v
retrieving revision 1.3.2.3
diff -b -U3 -r1.3.2.3 img_assist.css
--- img_assist.css	9 Mar 2007 02:22:10 -0000	1.3.2.3
+++ img_assist.css	9 Mar 2007 17:10:24 -0000
@@ -46,8 +46,19 @@
 }
 
 /* Properties Window */
+.img_assist table {
+  margin-top: 0;
+}
+.img_assist table tbody {
+  border-top: 0;
+}
+.img_assist td {
+  padding-bottom: 0;
+  vertical-align: bottom;
+}
 .img_assist #preview {
   padding: 5px 10px 5px 5px;
+  vertical-align: top;
 }
 .img_assist .form-item { /* the first form field on the properties frame should be at the top of the page  */
   margin-top: 0px;
@@ -87,6 +98,14 @@
   display: none;
   visibility: hidden;
 }
+td.titlefield, td.titlefield .form-item {
+  margin-bottom: 0;
+  padding-bottom: 0;
+}
+td.form-item {
+  margin-top: 0;
+  padding-top: 0;
+}
 
 /* Header Frame */
 #header-uploading, #header-properties, #header-browse {
Index: img_assist.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.js,v
retrieving revision 1.4.2.1
diff -b -U3 -r1.4.2.1 img_assist.js
--- img_assist.js	9 Mar 2007 02:22:10 -0000	1.4.2.1
+++ img_assist.js	9 Mar 2007 17:10:24 -0000
@@ -20,7 +20,11 @@
   var caption = frames['img_assist_main'].document.getElementById("caption");
   var title = frames['img_assist_main'].document.img_assist['edit-title'].value;
   var desc = frames['img_assist_main'].document.img_assist['edit-desc'].value;
-  if (desc != '') {
+  var alt = frames['img_assist_main'].document.img_assist['edit-alt'].checked;
+  if (alt == true) {
+    title = '';
+  }
+  if (desc != '' && title != '') {
     title = title + ': ';
   }
   caption.innerHTML = '<strong>' + title + '</strong>' + desc;
Index: img_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.module,v
retrieving revision 1.68.2.9
diff -b -U3 -r1.68.2.9 img_assist.module
--- img_assist.module	9 Mar 2007 02:01:02 -0000	1.68.2.9
+++ img_assist.module	9 Mar 2007 17:10:26 -0000
@@ -126,7 +126,7 @@
  * Theme for adding an image link underneath textareas
  */
 function theme_img_assist_textarea_link($element, $link) {
-  $output  = '<div class="img_assist-button"><a class="img_assist-link" id="img_assist-link-'. $element['#id'] .'" title="' . t('Click here to add images') . '" href="'. url('img_assist/load/textarea', 'textarea='. $element['#name']) .'" onclick="window.open(this.href, \'img_assist_link\', \'width=600,height=350,scrollbars=yes,status=yes,resizable=yes,toolbar=no,menubar=no\'); return false">';
+  $output  = '<div class="img_assist-button"><a class="img_assist-link" id="img_assist-link-'. $element['#id'] .'" title="' . t('Click here to add images') . '" href="'. url('img_assist/load/textarea', 'textarea='. $element['#name']) .'" onclick="window.open(this.href, \'img_assist_link\', \'width=600,height=400,scrollbars=yes,status=yes,resizable=yes,toolbar=no,menubar=no\'); return false">';
   $output .= ($link == 'icon') ? '<img src="'. base_path() . drupal_get_path('module', 'img_assist') .'/add-image.jpg" border="0" width="36" height="25" />' : t('Add image');
   $output .= '</a></div>';
   return $output;
@@ -804,10 +804,10 @@
   // Create the form
   $form[] = array('#value' => "<div id=\"properties\">\n");
   $form[] = array('#value' => '<table width="100%" border="0" cellspacing="0" cellpadding="0">');
-  $form[] = array('#value' => "<tr><td valign=\"top\" rowspan=\"3\" id=\"preview\">\n");
+  $form[] = array('#value' => "<tr><td valign=\"top\" rowspan=\"5\" id=\"preview\">\n");
   $form[] = array('#value' => $properties_image);
   $form[] = array('#value' => "<span id=\"caption\" style=\"width: {$properties_size['width']}px;\">{$node->title}</span>\n");
-  $form[] = array('#value' => "</td><td width=\"100%\" colspan=\"2\">\n");
+  $form[] = array('#value' => "</td><td width=\"90%\" class=\"titlefield\">\n");
 
   $form['title'] = array(
     '#type' => 'textfield',
@@ -815,16 +815,24 @@
     '#default_value' => variable_get('img_assist_load_title', 1) ? $node->title : '',
     '#size' => 50,
     '#maxlength' => 255,
-    '#description' => NULL,
     '#attributes' => array('onblur' => 'parent.updateCaption()'),
   );
+  $form[] = array('#value'=>"</td><td width=\"10%\" class=\"titlefield\">\n");
+  $form['alt'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Alt only'),
+    '#default_value' => FALSE,
+    '#attributes' => array('onclick'=>'parent.updateCaption()'),
+  );
+  $form[] = array('#value'=>"</td></tr><tr><td colspan=\"2\" class=\"form-item\">\n");
+  $form[] = array('#value'=>'<div class="description">With <em>Alt only</em> enabled, the title will only be show in the alt attribute of the image.</div>');
+  $form[] = array('#value'=>"</td></tr><tr><td colspan=\"2\">\n");
   $form['desc'] = array(
     '#type' => 'textfield',
     '#title' => t('Description (optional)'),
     '#default_value' => variable_get('img_assist_load_description', 1) ? $node->body : '',
     '#size' => 50,
     '#maxlength' => 255,
-    '#description' => NULL,
     '#attributes' => array('onblur' => 'parent.updateCaption()'),
   );
 
@@ -1290,17 +1298,34 @@
 }
 
 function theme_img_assist_inline($node, $size, $attributes) {
+  if ($attributes['alt'] == 1 || $attributes['alt'] == 'true') {
+    $attributes['alt'] = TRUE;
+  } else {
+    $attributes['alt'] = FALSE;
+  }
 
   if ($attributes['title'] && $attributes['desc']) {
+    $title = $attributes['title'] . ': ' . $attributes['desc'];
+    if ($attributes['alt'] == FALSE) {
     $caption = '<strong>' . $attributes['title'] . ': </strong>' . $attributes['desc'];
   }
+  }
   elseif ($attributes['title']) {
+    $title = $attributes['title'];
+    if ($attributes['alt'] == FALSE) {
     $caption = '<strong>' . $attributes['title'] . '</strong>';
   }
+  }
   elseif ($attributes['desc']) {
+    $title = $attributes['desc'];
     $caption = $attributes['desc'];
   }
-  $node->title = strip_tags($caption); // change the node title because img_assist_display() uses the node title for alt and title
+  else {
+    $caption = '';
+    $title   = '';
+  }
+
+  $node->title = strip_tags($title); // change the node title because img_assist_display() uses the node title for alt and title
   $img_tag = img_assist_display($node, $size);
 
   if ( $attributes['align'] == "center" ) {
Index: img_assist_textarea.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist_textarea.js,v
retrieving revision 1.2.2.1
diff -b -U3 -r1.2.2.1 img_assist_textarea.js
--- img_assist_textarea.js	9 Mar 2007 02:22:10 -0000	1.2.2.1
+++ img_assist_textarea.js	9 Mar 2007 17:10:26 -0000
@@ -62,6 +62,7 @@
 function getFilterTag(formObj) {
   var nid          = formObj['edit-nid'].value;
   var captionTitle = formObj['edit-title'].value;
+  var captionAlt   = formObj['edit-alt'].checked;
   var captionDesc  = formObj['edit-desc'].value;
   var link         = formObj['edit-link'].value;
   if (link == 'url') {
@@ -72,7 +73,7 @@
   var height       = formObj['edit-height'].value;
   
   // Create the image tag
-  var miscAttribs = 'nid=' + nid + '|title=' + captionTitle + '|desc=' + captionDesc + '|link=' + link;
+  var miscAttribs = 'nid=' + nid + '|title=' + captionTitle + '|alt=' + captionAlt + '|desc=' + captionDesc + '|link=' + link;
   var content = '[img_assist|' + miscAttribs + '' + '|align=' + align + '|width=' + width + '|height=' + height + ']';
   
   return content;
Index: img_assist_tinymce.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist_tinymce.js,v
retrieving revision 1.1.4.2
diff -b -U3 -r1.1.4.2 img_assist_tinymce.js
--- img_assist_tinymce.js	9 Mar 2007 02:22:10 -0000	1.1.4.2
+++ img_assist_tinymce.js	9 Mar 2007 17:10:26 -0000
@@ -15,6 +15,7 @@
 // get variables that were passed to this window from the tinyMCE editor
 var nid;
 var captionTitle;
+var captionAlt;
 var captionDesc;
 var link;
 var align;
@@ -30,6 +31,7 @@
 function initLoader() {
   nid          =      tinyMCE.getWindowArg('nid');
   captionTitle = '' + tinyMCE.getWindowArg('captionTitle');
+  captionAlt   = '' + tinyMCE.getWindowArg('captionAlt');
   captionDesc  = '' + tinyMCE.getWindowArg('captionDesc');
   link         = '' + tinyMCE.getWindowArg('link');
   align        = '' + tinyMCE.getWindowArg('align');
@@ -47,6 +49,7 @@
   var formObj = frames['img_assist_main'].document.forms[0];
   if (formObj['edit-update'].value == 1) {
     formObj['edit-title'].value  = captionTitle;
+    formObj['edit-alt'].checked  = captionAlt;
     formObj['edit-desc'].value   = captionDesc;
     link = link.split(',');
     formObj['edit-link'].value = link[0];
@@ -87,6 +90,7 @@
 function getFilterTag(formObj) {
   nid = formObj['edit-nid'].value
   captionTitle = formObj['edit-title'].value;
+  captionAlt   = formObj['edit-alt'].checked;
   captionDesc  = formObj['edit-desc'].value;
   link         = formObj['edit-link'].value;
   if (link == 'url') {
@@ -98,7 +102,7 @@
   
   // Create the image placeholder tag
   //  (see the TinyMCE_drupalimage_cleanup() function in the drupalimage plugin for documentation)
-  var miscAttribs = 'nid=' + nid + '|title=' + captionTitle + '|desc=' + captionDesc + '|link=' + link;
+  var miscAttribs = 'nid=' + nid + '|title=' + captionTitle + '|alt=' + captionAlt + '|desc=' + captionDesc + '|link=' + link;
   miscAttribs = encodeURIComponent(miscAttribs);
   var html    = '';
   html += ''
