diff options
| -rw-r--r-- | app/views/layouts/admin.html.erb | 2 | ||||
| -rw-r--r-- | config/locales/de.yml | 1 | ||||
| -rw-r--r-- | config/locales/en.yml | 1 | ||||
| -rw-r--r-- | public/javascripts/admin_interface.js | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index c2a93c77..97117710 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | <%= javascript_tag nonce: true do %> | 18 | <%= javascript_tag nonce: true do %> |
| 19 | var ADMIN_SEARCH_URL = "<%= admin_search_path %>"; | 19 | var ADMIN_SEARCH_URL = "<%= admin_search_path %>"; |
| 20 | var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>"; | 20 | var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>"; |
| 21 | var ADMIN_STRINGS = <%= raw({ :lock_lost_prefix => t(".lock_lost_prefix"), :lock_lost_link => t(".lock_lost_link"), :insert_image => t(".insert_image"), :insert_image_tooltip => t(".insert_image_tooltip") }.to_json) %>; | 21 | var ADMIN_STRINGS = <%= raw({ :lock_lost_prefix => t(".lock_lost_prefix"), :lock_lost_link => t(".lock_lost_link"), :insert_image => t(".insert_image"), :insert_image_tooltip => t(".insert_image_tooltip"), :copied => t(".copied") }.to_json) %>; |
| 22 | var PARAMETERIZE_PREVIEW_URL = "<%= parameterize_preview_nodes_path %>"; | 22 | var PARAMETERIZE_PREVIEW_URL = "<%= parameterize_preview_nodes_path %>"; |
| 23 | var DASHBOARD_SEARCH_URL = "<%= admin_dashboard_search_path %>"; | 23 | var DASHBOARD_SEARCH_URL = "<%= admin_dashboard_search_path %>"; |
| 24 | <% end %> | 24 | <% end %> |
diff --git a/config/locales/de.yml b/config/locales/de.yml index 6cf32831..cf93e05b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -707,6 +707,7 @@ de: | |||
| 707 | lock_lost_link: "zurück zur veröffentlichten Seite" | 707 | lock_lost_link: "zurück zur veröffentlichten Seite" |
| 708 | insert_image: "Bild einfügen" | 708 | insert_image: "Bild einfügen" |
| 709 | insert_image_tooltip: "Eines der angehängten Bilder dieser Seite einfügen" | 709 | insert_image_tooltip: "Eines der angehängten Bilder dieser Seite einfügen" |
| 710 | copied: "Kopiert!" | ||
| 710 | nav_controls: | 711 | nav_controls: |
| 711 | dashboard: "Dashboard" | 712 | dashboard: "Dashboard" |
| 712 | search: "Suche" | 713 | search: "Suche" |
diff --git a/config/locales/en.yml b/config/locales/en.yml index fbb683ce..c3f515b5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -654,6 +654,7 @@ en: | |||
| 654 | lock_lost_link: "return to the published page" | 654 | lock_lost_link: "return to the published page" |
| 655 | insert_image: "Insert image" | 655 | insert_image: "Insert image" |
| 656 | insert_image_tooltip: "Insert one of this page's attached images" | 656 | insert_image_tooltip: "Insert one of this page's attached images" |
| 657 | copied: "Copied!" | ||
| 657 | nav_controls: | 658 | nav_controls: |
| 658 | dashboard: "Dashboard" | 659 | dashboard: "Dashboard" |
| 659 | search: "Search" | 660 | search: "Search" |
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index d94fb623..539305a3 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -147,7 +147,7 @@ $(document).ready(function () { | |||
| 147 | navigator.clipboard.writeText(text).then(function () { | 147 | navigator.clipboard.writeText(text).then(function () { |
| 148 | var label = button.querySelector('.copy_button_label'); | 148 | var label = button.querySelector('.copy_button_label'); |
| 149 | if (!label) return; | 149 | if (!label) return; |
| 150 | var original = label.textContent; | 150 | var original = ADMIN_STRINGS.copied; |
| 151 | label.textContent = 'Copied!'; | 151 | label.textContent = 'Copied!'; |
| 152 | setTimeout(function () { label.textContent = original; }, 1500); | 152 | setTimeout(function () { label.textContent = original; }, 1500); |
| 153 | }); | 153 | }); |
