diff options
Diffstat (limited to 'public/javascripts')
| -rw-r--r-- | public/javascripts/admin_interface.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 7ff10ade..984eec05 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -211,7 +211,7 @@ cccms = { | |||
| 211 | error: function(xhr) { | 211 | error: function(xhr) { |
| 212 | if (xhr.status === 423) { | 212 | if (xhr.status === 423) { |
| 213 | clearInterval(cccms.autosave_timer); | 213 | clearInterval(cccms.autosave_timer); |
| 214 | cccms.report_lock_lost($("#page_editor > form").attr("data-show-url")); | 214 | cccms.report_lock_lost($("#admin_layout > form").attr("data-show-url")); |
| 215 | } | 215 | } |
| 216 | // any other failure: quietly retried on the next tick | 216 | // any other failure: quietly retried on the next tick |
| 217 | } | 217 | } |
| @@ -221,7 +221,7 @@ cccms = { | |||
| 221 | }; | 221 | }; |
| 222 | 222 | ||
| 223 | cccms.autosave_timer = setInterval(function() { | 223 | cccms.autosave_timer = setInterval(function() { |
| 224 | $("#page_editor > form").submitWithAjax(); | 224 | $("#admin_layout > form").submitWithAjax(); |
| 225 | }, 7000); | 225 | }, 7000); |
| 226 | }, | 226 | }, |
| 227 | 227 | ||
| @@ -257,7 +257,7 @@ cccms = { | |||
| 257 | }); | 257 | }); |
| 258 | 258 | ||
| 259 | $force.on('click', function() { | 259 | $force.on('click', function() { |
| 260 | $("#page_editor > form").submitWithAjax({ force: true }); | 260 | $("#admin_layout > form").submitWithAjax({ force: true }); |
| 261 | }); | 261 | }); |
| 262 | }, | 262 | }, |
| 263 | 263 | ||
| @@ -309,7 +309,7 @@ cccms = { | |||
| 309 | cccms.inline_images.ensure_overlay(); | 309 | cccms.inline_images.ensure_overlay(); |
| 310 | cccms.inline_images.editor = editor; | 310 | cccms.inline_images.editor = editor; |
| 311 | 311 | ||
| 312 | var showUrl = $("#page_editor > form").attr("data-show-url") || ""; | 312 | var showUrl = $("#admin_layout > form").attr("data-show-url") || ""; |
| 313 | var match = showUrl.match(/(\d+)$/); | 313 | var match = showUrl.match(/(\d+)$/); |
| 314 | cccms.inline_images.node_id = match ? match[1] : ""; | 314 | cccms.inline_images.node_id = match ? match[1] : ""; |
| 315 | 315 | ||
