rsence-pre 3.0.0.6 → 3.0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/client/js/controls/button/themes/default/button.css +4 -4
- data/client/js/controls/button/themes/default/button.html +1 -1
- data/client/js/core/elem/elem.coffee +14 -12
- data/client/js/core/event/event.js +1 -1
- data/client/js/foundation/eventmanager/eventmanager.coffee +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9e67ee3d79ed1c1533a87cf9aa0b67fe7d10cb3
|
4
|
+
data.tar.gz: 137fd0c7ebdaa1bc67819d4e60f71e053c139fcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e7a49a8227d396e2c0126fcc85af7f4f8e53e8d272f8181e6d9c1cfe09df959b8d94b46776990bc300c8495be96ccfa7ef737a3a9a458afbbbc6062ad1978ff
|
7
|
+
data.tar.gz: 31087cdeaf8159802eb1a63e59bd325be991e8afcc621268889cf3f5afc8a55028b3b423b0bfb01bac58d946d698efeec51c0a3954577c7f51f688c66acd12aa
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.0.
|
1
|
+
3.0.0.7.pre
|
@@ -16,13 +16,13 @@
|
|
16
16
|
border: 1px solid #e0e0e0;
|
17
17
|
border-top: 0; border-left: 0;
|
18
18
|
box-shadow: 0px 0px 3px #333;
|
19
|
-
#{this.gradientCSS('#fcfcfc',[45,'#
|
19
|
+
#{this.gradientCSS('#fcfcfc',[45,'#ffffff'],[55,'#fdfdfd'],[75,'#f3f3f3'],'#f0f0f0')}
|
20
20
|
}
|
21
21
|
.default.disabled > .button_control > .button_bg {
|
22
22
|
border-color: #ddd;
|
23
23
|
box-shadow: 0px 0px 3px #666;
|
24
24
|
opacity: 0.75;
|
25
|
-
#{this.gradientCSS('#d6d6d6',[66,'#d0d0d0'],[71,'#d3d3d3'],'#
|
25
|
+
#{this.gradientCSS('#d6d6d6',[66,'#d0d0d0'],[71,'#d3d3d3'],'#cccccc')}
|
26
26
|
}
|
27
27
|
.default > .button_control > .button_label {
|
28
28
|
left: 6px; right: 6px; top: 2px; bottom: auto;
|
@@ -40,7 +40,7 @@
|
|
40
40
|
}
|
41
41
|
.default.enabled > .button_control:hover > .button_bg {
|
42
42
|
box-shadow: 0px 0px 3px #000;
|
43
|
-
#{this.gradientCSS('#f6f6f6',[66,'#
|
43
|
+
#{this.gradientCSS('#f6f6f6',[66,'#ffffff'],[71,'#fcfcfc'],'#f0f0f0')}
|
44
44
|
}
|
45
45
|
.default.enabled > .button_control:hover > .button_label {
|
46
46
|
color: #000;
|
@@ -49,7 +49,7 @@
|
|
49
49
|
border: 1px solid #fff;
|
50
50
|
border-bottom: 0; border-right: 0;
|
51
51
|
box-shadow: 0px 0px 3px #000;
|
52
|
-
#{this.gradientCSS('#e6e6e6',[29,'#f0f0f0'],[33,'#f6f6f6'],'#
|
52
|
+
#{this.gradientCSS('#e6e6e6',[29,'#f0f0f0'],[33,'#f6f6f6'],'#ffffff')}
|
53
53
|
}
|
54
54
|
.default.enabled > .button_control:active > .button_label {
|
55
55
|
color: #000;
|
@@ -799,6 +799,7 @@ ELEM = HClass.extend
|
|
799
799
|
_steps.push "#{_step[1]} #{_step[0]}%"
|
800
800
|
_steps.push "#{_endColor} 100%"
|
801
801
|
return _steps
|
802
|
+
_gradientIdCount: 0
|
802
803
|
_linearGradientStyle: (_gradient)->
|
803
804
|
# IE6-8
|
804
805
|
if BROWSER_TYPE.ie7 or BROWSER_TYPE.ie8
|
@@ -809,17 +810,19 @@ ELEM = HClass.extend
|
|
809
810
|
# IE9 SVG, needs conditional override of 'filter' to 'none'
|
810
811
|
# Also static white-shaded svg, needs a svg source to base64 utility
|
811
812
|
_key = 'background'
|
812
|
-
_svg =
|
813
|
-
_svg += '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
|
814
|
-
_svg +=
|
815
|
-
_svg += """<stop offset="0%" stop-color="
|
813
|
+
_svg = """<?xml version="1.0" ?>"""
|
814
|
+
_svg += '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">'
|
815
|
+
_svg += """<defs><linearGradient id="gradientie#{@_gradientIdCount}" x1="0%" y1="0%" x2="0%" y2="100%">"""
|
816
|
+
_svg += """<stop offset="0%" stop-color="#{_gradient.start}" />"""
|
817
|
+
_svgSteps = ''
|
816
818
|
for _step in _gradient.steps
|
817
|
-
|
818
|
-
_svg +=
|
819
|
-
|
820
|
-
_svg += '</linearGradient>'
|
821
|
-
_svg +=
|
819
|
+
_svgSteps += """<stop offset="#{_step[0]}%" stop-color="#{_step[1]}" />"""
|
820
|
+
_svg += _svgSteps
|
821
|
+
_svg += """<stop offset="100%" stop-color="#{_gradient.end}" />"""
|
822
|
+
_svg += '</linearGradient></defs>'
|
823
|
+
_svg += """<rect width="100%" height="100%" fill="url(#gradientie#{@_gradientIdCount})" />"""
|
822
824
|
_svg += '</svg>'
|
825
|
+
@_gradientIdCount++
|
823
826
|
_svg64 = @sha.str2Base64(_svg)
|
824
827
|
_value = "url(data:image/svg+xml;base64,#{_svg64})"
|
825
828
|
else if BROWSER_TYPE.ie10
|
@@ -873,9 +876,8 @@ ELEM = HClass.extend
|
|
873
876
|
_browserType.ie8 = !!~_ua.indexOf('MSIE 8')
|
874
877
|
_browserType.ie9 = !!~_ua.indexOf('MSIE 9')
|
875
878
|
_browserType.ie10 = !!~_ua.indexOf('MSIE 10')
|
876
|
-
|
877
|
-
@sha = SHA.new(
|
878
|
-
# _browserType.ie9 = _browserType.ie10 # IE 10 is treated like IE 9
|
879
|
+
if _browserType.ie9
|
880
|
+
@sha = SHA.new(16) # SHA1 needed for IE9 SVG base64 encoding
|
879
881
|
_browserType.mac = !!~_ua.indexOf('Macintosh')
|
880
882
|
_browserType.win = !!~_ua.indexOf('Windows')
|
881
883
|
_browserType.firefox = !!~_ua.indexOf('Firefox')
|
@@ -40,7 +40,7 @@ Event = {
|
|
40
40
|
**/
|
41
41
|
isLeftClick: function(e) {
|
42
42
|
// IE: left 1, middle 4, right 2
|
43
|
-
if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie9 && !BROWSER_TYPE.ie10) {
|
43
|
+
if (BROWSER_TYPE.ie && !BROWSER_TYPE.ie8 && !BROWSER_TYPE.ie9 && !BROWSER_TYPE.ie10) {
|
44
44
|
return (e.button === 1 || e.button === 3 || e.button === 5);
|
45
45
|
}
|
46
46
|
else {
|
@@ -804,6 +804,7 @@ EventManagerApp = HApplication.extend
|
|
804
804
|
for _child in _elem.childNodes
|
805
805
|
for _className in _ieClassNames
|
806
806
|
_addClassName(_elem) if _hasClassName(_elem,_className) and not _hasClassName(_elem,'ieActive')
|
807
|
+
continue if _child.view_id?
|
807
808
|
_level += 1
|
808
809
|
_patcher(_child)
|
809
810
|
_level -= 1
|
@@ -970,6 +971,7 @@ EventManagerApp = HApplication.extend
|
|
970
971
|
Event.stop(e) if _stop
|
971
972
|
), 50
|
972
973
|
)
|
974
|
+
@_ieClassNameUnPatch() if BROWSER_TYPE.ie and @_ieClassNamePatched.length
|
973
975
|
Event.stop(e) if _stop
|
974
976
|
#
|
975
977
|
# Handles doubleClick events
|