1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Reverts r23984 and r23985 due to wrong issue ID (#34709).

git-svn-id: https://svn.redmine.org/redmine/trunk@23986 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2025-09-18 18:57:36 +00:00
parent 544a4881ce
commit 4cad9613d0
6 changed files with 23 additions and 46 deletions

View File

@ -228,12 +228,6 @@
<path d="M12 8l0 4l2 2"/>
<path d="M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--hourglass">
<path d="M6.5 7h11"/>
<path d="M6.5 17h11"/>
<path d="M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1z"/>
<path d="M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1z"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--image-gif">
<path d="M14 3v4a1 1 0 0 0 1 1h4"/>
<path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/>
@ -307,9 +301,6 @@
<path d="M5 12l0 .01"/>
<path d="M5 18l0 .01"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--loader">
<path d="M12 3a9 9 0 1 0 9 9"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--lock">
<path d="M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z"/>
<path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/>

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -45,13 +45,10 @@ function addFile(inputEl, file, eagerUpload) {
addFile.nextAttachmentId = 1;
function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
let attachmentIcon = $(fileSpan).find('svg.svg-attachment');
function onLoadstart(e) {
fileSpan.removeClass('ajax-waiting');
fileSpan.addClass('ajax-loading');
attachmentIcon.addClass('svg-loader');
updateSVGIcon(attachmentIcon[0], 'loader')
$('input:submit', $(this).parents('form')).attr('disabled', 'disabled');
}
@ -79,8 +76,6 @@ function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
}).always(function() {
ajaxUpload.uploading--;
fileSpan.removeClass('ajax-loading');
attachmentIcon.removeClass('svg-loader');
updateSVGIcon(attachmentIcon[0], 'attachment');
var form = fileSpan.parents('form');
if (form.queue('upload').length == 0 && ajaxUpload.uploading == 0) {
$('input:submit', form).removeAttr('disabled');
@ -92,7 +87,6 @@ function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
var progressSpan = $('<div>').insertAfter(fileSpan.find('input.filename'));
progressSpan.progressbar();
fileSpan.addClass('ajax-waiting');
updateSVGIcon(attachmentIcon[0], 'hourglass');
var maxSyncUpload = $(inputEl).data('max-concurrent-uploads');

View File

@ -1161,6 +1161,20 @@ span.required {color: #bb0000;}
padding-left: 3px;
padding-right: 0;
}
.attachments_fields .ajax-waiting {
padding-left: 16px;
background:url(/hourglass-empty.svg) no-repeat 0px 50%;
}
.attachments_fields .ajax-waiting .svg-attachment {
display: none;
}
.attachments_fields .ajax-loading {
padding-left: 16px;
background: url(/loading.gif) no-repeat 0px 50%;
}
.attachments_fields .ajax-loading .svg-attachment {
display: none;
}
a.remove-upload:hover {text-decoration:none !important;}
.existing-attachment.deleted .filename {text-decoration:line-through; color:#999 !important;}
@ -1352,13 +1366,14 @@ opacity: 0.5;
html>body #ajax-indicator { position: fixed; }
#ajax-indicator:not(:has(svg)) span {
background-position: 0% 40%;
background-repeat: no-repeat;
background-image: url(/loading.gif);
padding-left: 26px;
vertical-align: bottom;
#ajax-indicator span {
background-position: 0% 40%;
background-repeat: no-repeat;
background-image: url(/loading.gif);
padding-left: 26px;
vertical-align: bottom;
}
/***** Calendar *****/
ul.cal {
list-style: none;
@ -2163,19 +2178,6 @@ span.icon-label {
.sort-handle.ajax-loading { background-image: url(/loading.gif); }
tr.ui-sortable-helper { border:1px solid #e4e4e4; }
svg.svg-loader {
animation: spin 1s linear infinite;
transform-origin: center;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.contextual>*:not(:first-child), .buttons>.icon:not(:first-child), .contextual .journal-actions>*:not(:first-child) { margin-left: 5px; }

View File

@ -10,8 +10,6 @@
<span class="attachments_icons hidden">
<%= sprite_icon('del', icon_only: true, css_class: 'svg-del') %>
<%= sprite_icon('attachment', icon_only: true, size: 16, css_class: 'svg-attachment') %>
<%= sprite_icon('loader', icon_only: true, size: 16, css_class: 'svg-loader') %>
<%= sprite_icon('hourglass', icon_only: true, size: 16, css_class: 'svg-hourglass') %>
</span>
<span class="attachments_fields">
<% if saved_attachments.present? %>

View File

@ -127,11 +127,7 @@
Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url, :target => '_blank', :rel => 'noopener' %> &copy; 2006-2025 Jean-Philippe Lang
</div>
<div id="ajax-indicator" style="display:none;">
<span class="icon">
<%= sprite_icon 'loader', l(:label_loading), css_class: 'svg-loader' %>
</span>
</div>
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
<div id="ajax-modal" style="display:none;"></div>
<div id="icon-copy-source" style="display: none;"><%= sprite_icon('') %></div>

View File

@ -237,8 +237,4 @@
svg: message-report
- name: quote-filled
svg: quote
style: filled
- name: loader
svg: loader-2
- name: hourglass
svg: hourglass
style: filled