mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
V 3.5 RC 1
This commit is contained in:
@@ -12,7 +12,7 @@ function FileProgress(file, targetID) {
|
||||
this.fileProgressStatus = $('#'+this.fileProgressID+' div.progressBarStatus');
|
||||
this.fileProgressBar = $('#'+this.fileProgressID+' div.progressBarInProgress');
|
||||
|
||||
if (this.fileProgressWrapper.length == 0) {
|
||||
if (this.fileProgressWrapper.length === 0) {
|
||||
|
||||
var elem = '<li class="progressWrapper" id="'+this.fileProgressID+'">'+
|
||||
'<div class="progressContainer">'+
|
||||
@@ -59,6 +59,12 @@ FileProgress.prototype.setComplete = function () {
|
||||
this.fileProgressContainer.addClass('green');
|
||||
this.fileProgressBar.addClass('complete').css('width','auto');
|
||||
};
|
||||
FileProgress.prototype.setQuarantine = function () {
|
||||
this.fileProgressWrapper.addClass('done');
|
||||
this.fileProgressContainer.addClass('orange');
|
||||
this.fileProgressContainer.addClass('quarantine');
|
||||
this.fileProgressBar.addClass('complete').css('width','auto');
|
||||
};
|
||||
FileProgress.prototype.setError = function () {
|
||||
this.fileProgressWrapper.addClass('done');
|
||||
this.fileProgressContainer.removeClass('green blue').addClass('red');
|
||||
|
Reference in New Issue
Block a user