diff options
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 | ||
