summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-05-07 22:51:51 +0200
committerhukl <contact@smyck.org>2009-05-07 22:51:51 +0200
commit8235376ead33383a0009ce8993ab7a3502c38bb1 (patch)
tree7d1c9a634324f66b248eea2c116acfc38bae02a3 /app/views/nodes
parent744123da8eb36014f9acefc5f4a970d15d32924b (diff)
autosave only when something has actually changed. this was hard. i don't like javascript
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/_autosave.html.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/nodes/_autosave.html.erb b/app/views/nodes/_autosave.html.erb
index 583b374..7d3736b 100644
--- a/app/views/nodes/_autosave.html.erb
+++ b/app/views/nodes/_autosave.html.erb
@@ -1,6 +1,5 @@
1
2<script type="text/javascript" charset="utf-8"> 1<script type="text/javascript" charset="utf-8">
3 $(document).ready(function() { 2 $(document).ready(function() {
4 setInterval('$("#edit_node_<%= @node.id %>").submitWithAjax()', 15000); 3 setInterval('$("#edit_node_<%= @node.id %>").submitWithAjax()', 15000);
5 }); 4 });
6</script> \ No newline at end of file 5</script>