form.children[i].value = '';
}
+function select_update(id, options, empty)
+{
+ var obj = document.getElementById(id);
+ if (!obj) return;
+
+ if (typeof empty == 'undefined') empty = 0;
+
+ obj.options.length = empty;
+
+ for (var i=0; i < options.length; i++)
+ obj.options[empty+i] = new Option(options[i].text,options[i].id,false,false);
+}
+
+var post_save = function() { grid_update(grid); }
+var post_delete = function() { grid_update(grid); }
+
function save_callback(data)
{
info('Datensatz gespeichert');
- grid_update(grid);
+
+ if (typeof post_save == 'function')
+ post_save();
}
function delete_callback(data)
{
info('Datensatz gelöscht');
- grid_update(grid);
+
+ if (typeof post_delete == 'function')
+ post_delete();
}
function form_save(obj)