diff options
| author | hukl <contact@smyck.org> | 2009-04-16 12:14:45 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-16 12:14:45 +0200 |
| commit | 7fe358bfb11f1cba4ee9237c4ef4b7efc3cfba87 (patch) | |
| tree | a4ee5095b0ff151891d0ec402dc5b00bedb9a565 /app/views/nodes/_autosave.html.erb | |
| parent | 7176edae9b93eb00e7982ec2d9a69f5b28633907 (diff) | |
added autosave to node edit view. saves every 15 seconds
Diffstat (limited to 'app/views/nodes/_autosave.html.erb')
| -rw-r--r-- | app/views/nodes/_autosave.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/nodes/_autosave.html.erb b/app/views/nodes/_autosave.html.erb new file mode 100644 index 00000000..583b3740 --- /dev/null +++ b/app/views/nodes/_autosave.html.erb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | |||
| 2 | <script type="text/javascript" charset="utf-8"> | ||
| 3 | $(document).ready(function() { | ||
| 4 | setInterval('$("#edit_node_<%= @node.id %>").submitWithAjax()', 15000); | ||
| 5 | }); | ||
| 6 | </script> \ No newline at end of file | ||
