summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/admin_interface.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js
index 984eec05..ee0b34cd 100644
--- a/public/javascripts/admin_interface.js
+++ b/public/javascripts/admin_interface.js
@@ -24,8 +24,8 @@ $(document).ready(function () {
24 24
25 editor.ui.registry.addButton('insertpageimage', { 25 editor.ui.registry.addButton('insertpageimage', {
26 icon: 'image', 26 icon: 'image',
27 text: 'Insert image', 27 text: ADMIN_STRINGS.insert_image,
28 tooltip: "Insert one of this page's attached images", 28 tooltip: ADMIN_STRINGS.insert_image_tooltip,
29 onAction: function() { 29 onAction: function() {
30 cccms.inline_images.open(editor); 30 cccms.inline_images.open(editor);
31 } 31 }
@@ -231,10 +231,8 @@ cccms = {
231 $flash = $("<div>", { id: "flash" }).insertAfter(".admin_content_spacer"); 231 $flash = $("<div>", { id: "flash" }).insertAfter(".admin_content_spacer");
232 } 232 }
233 233
234 var $banner = $("<span>", { "class": "warning" }).text( 234 var $banner = $("<span>", { "class": "warning" }).text(ADMIN_STRINGS.lock_lost_prefix);
235 "This page is now locked by someone else — your changes here can no longer be saved. Copy anything you need, then " 235 $banner.append($("<a>", { href: show_url }).text(ADMIN_STRINGS.lock_lost_link));
236 );
237 $banner.append($("<a>", { href: show_url }).text("return to the published page"));
238 $banner.append("."); 236 $banner.append(".");
239 237
240 $flash.html($banner); 238 $flash.html($banner);