--- 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('
','
'),
$content
);
+
// If loaded for the first time, return the table and script
return '' . $content . $refresh_js . '
' . $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 = '';
+ $rendered = '';
break;
case 'select':
@@ -1216,4 +1221,4 @@ function ajaxtable_ajax_input_col($row,$
return $script . '';
}
-?>
\ No newline at end of file
+?>