diff --git a/webui/style.css b/webui/style.css index 1dd6557e..6e1713ca 100644 --- a/webui/style.css +++ b/webui/style.css @@ -123,6 +123,11 @@ body { -moz-animation:spin 1s linear infinite; animation:spin 1s linear infinite; } + +.spinner.material-icon { + color: inherit; +} + @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } } diff --git a/webui/upload.js b/webui/upload.js index 30a484cc..7813c1b4 100644 --- a/webui/upload.js +++ b/webui/upload.js @@ -195,9 +195,12 @@ var Upload = (new function($) var file = selectedFiles[i]; var filename = file.name.replace(/\.queued$/g, ''); var html = ''+ - ''+ - '
'+ - 'draft' + Util.formatNZBName(filename) + '
'; + '
'+ + 'draft'+ + 'check_circle'+ + 'error'+ + 'progress_activity'+ + '' + Util.formatNZBName(filename) + '
'; $('#AddDialog_Files').append(html); files.push(file); @@ -334,8 +337,8 @@ var Upload = (new function($) return; } - $('#AddDialog_Files table:eq(' + index + ') img').show(); - $('#AddDialog_Files table:eq(' + index + ') i').hide(); + $('#AddDialog_Files table:eq(' + index + ') i.material-icon--progress').toggleClass('hide'); + $('#AddDialog_Files table:eq(' + index + ') i.material-icon--draft').toggleClass('hide'); var reader = new FileReader(); reader.onload = function (event) @@ -376,10 +379,13 @@ var Upload = (new function($) if (result) { filesSuccess.push(files[index]); + $('#AddDialog_Files table:eq(' + index + ') i.material-icon--success').toggleClass('hide'); } - $('#AddDialog_Files table:eq(' + index + ') img').hide(); - $('#AddDialog_Files table:eq(' + index + ') i').removeClass('icon-file').addClass( - result ? 'icon-ok' : 'icon-remove').show(); + else + { + $('#AddDialog_Files table:eq(' + index + ') i.material-icon--error').toggleClass('hide'); + } + $('#AddDialog_Files table:eq(' + index + ') i.material-icon--progress').toggleClass('hide'); index++; fileNext(); }