summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-05-07 23:06:39 +0200
committerhukl <contact@smyck.org>2009-05-07 23:06:39 +0200
commit7f88d4b70da9b1f1916e3f1e7c0d3913d1e31bc1 (patch)
tree600eb14f410ed3c8934a0c15746a91c22c31da2a
parent8235376ead33383a0009ce8993ab7a3502c38bb1 (diff)
moving the observer around
-rw-r--r--app/views/layouts/admin.html.erb3
-rw-r--r--app/views/nodes/_autosave.html.erb5
2 files changed, 3 insertions, 5 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index 4e0347d..07363e3 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -66,7 +66,10 @@
66 $.post(this.attr("action"), $(this).serialize(), null, "script"); 66 $.post(this.attr("action"), $(this).serialize(), null, "script");
67 } 67 }
68 }; 68 };
69
70 setInterval('$("#edit_node_<%= @node.id %>").submitWithAjax()', 15000);
69 } 71 }
72
70 </script> 73 </script>
71 </head> 74 </head>
72 75
diff --git a/app/views/nodes/_autosave.html.erb b/app/views/nodes/_autosave.html.erb
index 7d3736b..e69de29 100644
--- a/app/views/nodes/_autosave.html.erb
+++ b/app/views/nodes/_autosave.html.erb
@@ -1,5 +0,0 @@
1<script type="text/javascript" charset="utf-8">
2 $(document).ready(function() {
3 setInterval('$("#edit_node_<%= @node.id %>").submitWithAjax()', 15000);
4 });
5</script>