diff --git a/script/ugc.js b/script/ugc.js index ab8d7d7..3ecc0a0 100755 --- a/script/ugc.js +++ b/script/ugc.js @@ -17,7 +17,7 @@ function Film(oSettings) { this._ban.status = true; this._ban.reason = sReason; - this.feedback('Hidding movie "'+this.name()+'". Ban reason: '+this.ban().reason); + this.feedback('Hidding movie "'+this.name()+'": '+this.ban().reason); this.anchor().addClass('banned'); } else this.error('Setting ban status with no reason'); @@ -84,7 +84,8 @@ function Film(oSettings) { var sEdito = this.edito() || ''; var iRank = 0; - if(sEdito=='Nouveau') iRank += 10000000; + if(this.ban().status) iRank -= 10000000; + else if(sEdito=='Nouveau') iRank += 10000000; else if(sEdito.slice(-7)=='semaine') iRank += 100000*parseInt(sEdito.substr(0, sEdito.indexOf('รจ'))); iRank += parseInt(this.id(), 10); return iRank; @@ -96,8 +97,7 @@ function Film(oSettings) else { //Add film to DOM - this._anchor = $('