diff options
| author | hukl <contact@smyck.org> | 2009-05-07 22:51:51 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-05-07 22:51:51 +0200 |
| commit | 8235376ead33383a0009ce8993ab7a3502c38bb1 (patch) | |
| tree | 7d1c9a634324f66b248eea2c116acfc38bae02a3 /public/javascripts/admin_interface.js | |
| parent | 744123da8eb36014f9acefc5f4a970d15d32924b (diff) | |
autosave only when something has actually changed. this was hard. i don't like javascript
Diffstat (limited to 'public/javascripts/admin_interface.js')
| -rw-r--r-- | public/javascripts/admin_interface.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 12a3ba6..2b8a0d2 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -16,11 +16,4 @@ $(document).ready(function () { | |||
| 16 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} | 16 | 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} |
| 17 | }) | 17 | }) |
| 18 | 18 | ||
| 19 | jQuery.fn.submitWithAjax = function() { | ||
| 20 | $("#flash").append("<img src='/images/ajax-loader.gif' alt='' />"); | ||
| 21 | $.post(this.attr("action"), $(this).serialize(), null, "script"); | ||
| 22 | }; | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | }); \ No newline at end of file | 19 | }); \ No newline at end of file |
