Is there a way to increase the length of time that the popup error messages display? The error messages appear when users try to upload files that are too large or have exceeded their quota. The current popup messages appear for about a second and disappear. it is difficult to read through the error even if you know it is coming let alone not expecting it.

Comments

brokenspokeshane’s picture

I think the answer may be in the file js/imce.js lines 549 - 563

//insert log message
setMessage: function (msg, type) {
var $box = $(imce.msgBox);
var logs = imce.el('log-messages') || $(imce.newEl('div')).appendTo('#help-box-content').before('

'+ Drupal.t('Log messages') +':

').attr('id', 'log-messages')[0];
var msg = '

'+ msg +'

';
$box.queue(function() {
$box.css({opacity: 0, display: 'block'}).html(msg);
$box.dequeue();
});
var q = $box.queue().length;
q = q < 2 ? 1 : q < 3 ? 0.8 : q < 4 ? 0.7 : 0.4;//adjust speed with respect to queue length
$box.fadeTo(600 * q, 1).fadeTo(1000 * q, 1).fadeOut(400 * q);
$(logs).append(msg);
return false;
},

I don't know much about javascript though... :(

ufku’s picture

You may increase the value 1000(1 second) which is on the the line $box.fadeTo(600 * q, 1).fadeTo(1000 * q, 1).fadeOut(400 * q);

I'll consider making it configurable.

ufku’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Active » Fixed

This is now adjustable with imce.vars.msgT variable. Default is "1000" ms, which is 1 second.

One can set its value in script.js file of a theme

if (window.imce) {
  imce.vars.msgT = 2000; // set as 2 seconds.
}

or in imce-content.tpl.php

<script type="text/javascript">
imce.vars.msgT = 2000; // set as 2 seconds.
</script>

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.