summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-14 01:22:11 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-14 01:22:11 +0200
commit19b865108c26cf18c26697fee080844de94fb522 (patch)
tree33af772574dacaa43d5ab0f79a2abc64a7bd9fa5 /public/javascripts
parent45d422f6582ac2ebf455a8c8168738db54a76582 (diff)
Scope admin form conventions with a class
.admin_layout replaces the #admin_layout. All css rules and javascript queries were changed along and rules simplified where the opportunity arose.
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/admin_interface.js8
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