Skip to content

Commit

Permalink
Let opacity be configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 2, 2014
1 parent 54f1b2d commit 5a27c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Core/js/redbox.js
Expand Up @@ -12,6 +12,7 @@ var RedBox = {
overlay: true,
duration: 0.4,
onDisplay: null,
opacity: 0.6,

showInline: function(id)
{
Expand Down Expand Up @@ -98,7 +99,7 @@ var RedBox = {

if (this.overlay) {
this.setOverlaySize();
return new Effect.Appear($('RB_overlay'), { sync: sync, duration: this.duration, to: 0.6, queue: sync ? 'parallel' : 'end' });
return new Effect.Appear($('RB_overlay'), { sync: sync, duration: this.duration, to: this.opacity, queue: sync ? 'parallel' : 'end' });
}
},

Expand Down

0 comments on commit 5a27c62

Please sign in to comment.