aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-24 22:21:41 +0800
committerGitHub <noreply@github.com>2023-08-24 10:21:41 -0400
commit8ac83043f5bd53cf6094fe026f27004dcd3b67c5 (patch)
treed674b2e1c7a9f2c6d6b18d6a364f7175678dce64 /web_src/js
parent09faf43ef822ca4dbdfb2a2714ad43a782acf6e8 (diff)
downloadgitea-8ac83043f5bd53cf6094fe026f27004dcd3b67c5.tar.gz
gitea-8ac83043f5bd53cf6094fe026f27004dcd3b67c5.zip
Use "small-loading-icon" insead of "btn-octicon is-loading" (#26710)
The "btn-octicon is-loading" was introduced by #21842 , it is only used by the "Copy Content" button, but the "btn-octicon" selector would affect too many uncertain elements. Now there is a general "small-loading-icon" class, so the "btn-octicon is-loading" could be removed.
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/copycontent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/copycontent.js b/web_src/js/features/copycontent.js
index 621d6dab73..c1419a524b 100644
--- a/web_src/js/features/copycontent.js
+++ b/web_src/js/features/copycontent.js
@@ -18,7 +18,7 @@ export function initCopyContent() {
// the text to copy is not in the DOM or it is an image which should be
// fetched to copy in full resolution
if (link) {
- btn.classList.add('is-loading');
+ btn.classList.add('is-loading', 'small-loading-icon');
try {
const res = await fetch(link, {credentials: 'include', redirect: 'follow'});
const contentType = res.headers.get('content-type');
@@ -32,7 +32,7 @@ export function initCopyContent() {
} catch {
return showTemporaryTooltip(btn, i18n.copy_error);
} finally {
- btn.classList.remove('is-loading');
+ btn.classList.remove('is-loading', 'small-loading-icon');
}
} else { // text, read from DOM
const lineEls = document.querySelectorAll('.file-view .lines-code');
ion value='backport/40367/stable25'>backport/40367/stable25 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/l10n/bs.js
blob: c02d88b07e4419351c44b1eb04e69ef6160c30dd (plain)
1
2
3
4
5
6
7
8
9
10
OC.L10N.register(
    "files_trashbin",
    {
    "Restore" : "Obnovi",
    "Delete" : "Izbriši",
    "Error" : "Greška",
    "Select all" : "Označi sve",
    "Name" : "Ime"
},
"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);");