material_raingular 0.0.3.1 → 0.0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c13a776b583ba81f26556b74cab7995e179bc50
|
4
|
+
data.tar.gz: 6e1cfe31dee8a8c2e599cb3b7d118a0b9c70ccc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8fa834ab52932e40591fba4931f8ccd52a1342dce52ac2a95b26e45eb6565e9a97e9210f4b3da923c676c5f2c8cf705b05a8f5ee3db7d9ff45c8c37d579f60b
|
7
|
+
data.tar.gz: df42bd0c6272fe6124752593afb94a571ca5fbb0890f6df32c0c026528e7c7fb4cbfc19b3420c5993674b3ea53c910e9343d6f14dc55f4c917b340ad816b565d
|
@@ -77,6 +77,7 @@ class StandardTemplate
|
|
77
77
|
stylize: ->
|
78
78
|
@search.addClass('md-input') if @element.hasClass('md-input')
|
79
79
|
@search.css({'width': '100%','color': 'black'})
|
80
|
+
@element.css('position','relative').css('overflow','visible')
|
80
81
|
searchCss = window.getComputedStyle(@search[0])
|
81
82
|
@typeAhead.css('padding-left', parseFloat(searchCss["padding-left"]) + parseFloat(searchCss["margin-left"]) + parseFloat(searchCss["border-left-width"]) + 'px')
|
82
83
|
@typeAhead.css('padding-top', parseFloat(searchCss["padding-top"]) + parseFloat(searchCss["margin-top"]) + parseFloat(searchCss["border-top-width"]) + 'px')
|
@@ -114,12 +115,15 @@ class EventFunctions
|
|
114
115
|
focusFunction: (event) =>
|
115
116
|
@buildTemplate()
|
116
117
|
blurFunction: (search,event) =>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
118
|
+
if search.val().length < 4
|
119
|
+
search.val('')
|
120
|
+
else
|
121
|
+
obj={}
|
122
|
+
obj[@functions.viewValue] = search.val()
|
123
|
+
val = @filter('filter')(@functions.collection(@scope), obj)[0]
|
124
|
+
@updateValue @functions.modelValueFn(val)
|
125
|
+
search.css
|
126
|
+
search.val(@functions.viewValueFn(val))
|
123
127
|
keydownFunction: (search,typeAhead,template,input) =>
|
124
128
|
keypress = (direction) ->
|
125
129
|
index = if direction == 'next' then 0 else template.find('a').length - 1
|