client/js/foundation/thememanager/thememanager.coffee in rsence-pre-3.0.0.8 vs client/js/foundation/thememanager/thememanager.coffee in rsence-pre-3.0.0.9

- old
+ new

@@ -112,10 +112,20 @@ _tmplHTML = _tmplHTML.replace( _assignmentMatch, _callValue( RegExp.$1, true ) ) while _variableMatch.test(_tmplHTML) _tmplHTML = _tmplHTML.replace( _variableMatch, _callValue( RegExp.$1 ) ) # console.log('tmplHTML:',_tmplHTML) if _componentName == 'tab' return _tmplHTML - + gradientStyle: -> + _colors = [] + _colors.push( _color ) for _color in arguments + [_key, _value] = ELEM._linearGradientStyle( + start: _colors.shift() + end: _colors.pop() + steps: _colors + ) + _style = {} + _style[_key] = _value + _style gradientCSS: -> _colors = [] _colors.push( _color ) for _color in arguments _gradient = ELEM._linearGradientCSS( start: _colors.shift()