Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v retrieving revision 1.95 diff -u -p -r1.95 img_assist.module --- img_assist.module 18 Jan 2009 21:51:07 -0000 1.95 +++ img_assist.module 1 Feb 2009 08:21:14 -0000 @@ -1119,23 +1119,26 @@ function img_assist_properties_form($for ); // Buttons. - $form[] = array('#value' => '
'); - $form['insert'] = array( + $form['buttons'] = array( + '#prefix' => '
', + '#suffix' => '
', + ); + $form['#attributes']['onsubmit'] = 'return parent.insertImage();'; + $form['buttons']['insert'] = array( '#type' => 'submit', '#value' => ($update) ? t('Update') : t('Insert'), - '#attributes' => array('onclick' => 'parent.insertImage()', 'style' => 'float: left;'), + '#attributes' => array('style' => 'float: left;'), ); - $form['cancel'] = array( + $form['buttons']['cancel'] = array( '#type' => 'button', '#value' => t('Cancel'), '#button_type' => 'button', - '#attributes' => array('onclick' => 'parent.cancelAction()', 'style' => 'float: right;'), + '#attributes' => array('onclick' => 'return parent.cancelAction();', 'style' => 'float: right;'), ); - $form[] = array('#value' => '
'); $form[] = array('#value' => ''); - $form['#attributes'] = array('name' => 'img_assist'); + $form['#attributes']['name'] = 'img_assist'; return $form; } @@ -1819,8 +1822,8 @@ function theme_img_assist_page($content, $output .= drupal_get_html_head(); $output .= drupal_get_js(); $output .= "\n