diff options
Diffstat (limited to 'public/javascripts/admin_interface.js')
| -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 67bfb8fc..cbfa4dc6 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -220,7 +220,7 @@ cccms = { | |||
| 220 | error: function(xhr) { | 220 | error: function(xhr) { |
| 221 | if (xhr.status === 423) { | 221 | if (xhr.status === 423) { |
| 222 | clearInterval(cccms.autosave_timer); | 222 | clearInterval(cccms.autosave_timer); |
| 223 | cccms.report_lock_lost($("#admin_layout > form").attr("data-show-url")); | 223 | cccms.report_lock_lost($(".admin_layout > form").attr("data-show-url")); |
| 224 | } | 224 | } |
| 225 | // any other failure: quietly retried on the next tick | 225 | // any other failure: quietly retried on the next tick |
| 226 | } | 226 | } |
| @@ -230,7 +230,7 @@ cccms = { | |||
| 230 | }; | 230 | }; |
| 231 | 231 | ||
| 232 | cccms.autosave_timer = setInterval(function() { | 232 | cccms.autosave_timer = setInterval(function() { |
| 233 | $("#admin_layout > form").submitWithAjax(); | 233 | $(".admin_layout > form").submitWithAjax(); |
| 234 | }, 7000); | 234 | }, 7000); |
| 235 | }, | 235 | }, |
| 236 | 236 | ||
| @@ -264,7 +264,7 @@ cccms = { | |||
| 264 | }); | 264 | }); |
| 265 | 265 | ||
| 266 | $force.on('click', function() { | 266 | $force.on('click', function() { |
| 267 | $("#admin_layout > form").submitWithAjax({ force: true }); | 267 | $(".admin_layout > form").submitWithAjax({ force: true }); |
| 268 | }); | 268 | }); |
| 269 | }, | 269 | }, |
| 270 | 270 | ||
| @@ -316,7 +316,7 @@ cccms = { | |||
| 316 | cccms.inline_images.ensure_overlay(); | 316 | cccms.inline_images.ensure_overlay(); |
| 317 | cccms.inline_images.editor = editor; | 317 | cccms.inline_images.editor = editor; |
| 318 | 318 | ||
| 319 | var showUrl = $("#admin_layout > form").attr("data-show-url") || ""; | 319 | var showUrl = $(".admin_layout > form").attr("data-show-url") || ""; |
| 320 | var match = showUrl.match(/(\d+)$/); | 320 | var match = showUrl.match(/(\d+)$/); |
| 321 | cccms.inline_images.node_id = match ? match[1] : ""; | 321 | cccms.inline_images.node_id = match ? match[1] : ""; |
| 322 | 322 | ||
