--- ajaxtable.module	2008-02-13 20:06:27.000000000 +0100
+++ ajaxtable.module.new	2008-02-13 20:04:44.000000000 +0100
@@ -840,11 +840,13 @@ function _ajaxtable_render($table,$id,$u
     array('<div id="' . $id . '_container">','</div>'),
     $content
   );
+
   // If loaded for the first time, return the table and script
   return '<div class="ajaxtable ajaxtable-' . $table['theme'] . ' ajaxtable" id="ajaxtable_' . $id . '_overall">' . $content . $refresh_js . '</div>' . $script . $js_row_functions . $js_row_hover_code;
     
     
 }
+
 /**
 * Generates a call to the js function to render the page
 *
@@ -1160,6 +1162,9 @@ function ajaxtable_ajax_input_col($row,$
 		if ($input['confirm']) {
 			$confirm = 'if (!confirm(\'' . $input['confirm'] . '\')) { return false; };';
 		}
+		if ($input['refresh']) {
+                  $refresh = 'ajaxtable_refresh_' . $table['id'] . '(\'' . $table['id'] . '\', \'\', \'\', \'\', \'\'' . ');';
+		}
 		if ($input['type'] == 'date' && !module_exists('jstools')) {
 			$input['type'] = 'text';
 		}
@@ -1195,7 +1200,7 @@ function ajaxtable_ajax_input_col($row,$
 				if ($input['value'] != '' && $input['value'] != 'NULL' && $input['value'] != '0') {
 					$checked = ' checked="checked" ';
 				}
-				$rendered = '<input ' . $attributes . ' ' . $checked . ' value="1" id="' . $input_id. '" type="checkbox" onclick="' . $confirm . $js_function_name . '($(\'#' . $input_id . '\').is(\':checked\'),\'' . $input['function_name'] . '\',\'' . $input['uid'] . '\');">';
+				$rendered = '<input ' . $attributes . ' ' . $checked . ' value="1" id="' . $input_id. '" type="checkbox" onclick="' . $confirm . $js_function_name . '($(\'#' . $input_id . '\').is(\':checked\'),\'' . $input['function_name'] . '\',\'' . $input['uid'] . '\');' . $refresh . '" />';
 				break;
 				
 			case 'select':
@@ -1216,4 +1221,4 @@ function ajaxtable_ajax_input_col($row,$
 		return $script . '<table><tr><td style="width:100%">' . $rendered . '</td><td><div id="' . $loading_id . '"><div></div></div></td></tr></table>';
 }
 
-?>
\ No newline at end of file
+?>
