Skip to content

Commit

Permalink
[cmd:rm] fix #2733 correction of spinner position
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Oct 20, 2018
1 parent ef29ab7 commit 340596c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/commands/rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ elFinder.prototype.commands.rm = function() {
var cnt = targets.length,
cwd = fm.cwd().hash,
descs = [],
spinner = '<span class="elfinder-info-spinner"/>' + fm.i18n('calc'),
spinner = fm.i18n('calc') + '<span class="elfinder-spinner"/>',
dialog, text, tmb, size, f, fname;

if (cnt > 1) {
Expand Down Expand Up @@ -84,9 +84,9 @@ elFinder.prototype.commands.rm = function() {

if (getSize) {
getSize = fm.getSize($.map(files, function(f) { return f.mime === 'directory'? f.hash : null; })).done(function(data) {
dialog.find('span.elfinder-info-spinner').parent().html(fm.i18n('size')+': '+data.formated);
dialog.find('span.elfinder-spinner').parent().html(fm.i18n('size')+': '+data.formated);
}).fail(function() {
dialog.find('span.elfinder-info-spinner').parent().html(fm.i18n('size')+': '+fm.i18n('unknown'));
dialog.find('span.elfinder-spinner').parent().html(fm.i18n('size')+': '+fm.i18n('unknown'));
}).always(function() {
getSize = false;
});
Expand Down

0 comments on commit 340596c

Please sign in to comment.