Browse Source

Merge pull request #3665 from larsbo/fix-inverted-dimmer

fix modal/dimmer inverted bug #3192
pull/3704/head
Jack Lukic 8 years ago
parent
commit
4137c4eaba
1 changed files with 2 additions and 1 deletions
  1. 3
      src/definitions/modules/dimmer.js

3
src/definitions/modules/dimmer.js

@ -383,10 +383,11 @@ $.fn.dimmer = function(parameters) {
var
color = $dimmer.css('background-color'),
colorArray = color.split(','),
isRGB = (colorArray && colorArray.length == 3),
isRGBA = (colorArray && colorArray.length == 4)
;
opacity = settings.opacity === 0 ? 0 : settings.opacity || opacity;
if(isRGBA) {
if(isRGB || isRGBA) {
colorArray[3] = opacity + ')';
color = colorArray.join(',');
}

Loading…
Cancel
Save