[imp] IMP 6 Quota

Mauricio Jose T. Tecles mtecles at biof.ufrj.br
Wed Jan 16 11:42:51 UTC 2013


A minor error when defining the class name to show quota (Horde 5, IMP  
6, dynamic view). If the quota > 100% it shows in red (alert).  
Changing quota below 75% and clicking the "Refresh" button, it still  
shows in red (alert).

Comparing with Horde 4, IMP 5, I´ve find and changed:

imp/lib/Ajax/Queue.php, function add, line 172
from:
: ($quotadata['percent'] >= 75 ? 'warn' : '')
to:
: ($quotadata['percent'] >= 75 ? 'warn' : 'control')

imp/js/dimpbase.js, quotaCallback: function, line 2069
from (there are two "case 'alert'", this is the  second one)
case 'alert':
to
case 'control':

That seems to have solved the error.

Maurício José T. Tecles
Instituto de Biofísica C. C. F. - UFRJ
mtecles at biof.ufrj.br
Tel.: (21) 2562-6544






----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the imp mailing list