material_raingular 0.1.3 → 0.1.3.5
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: e0541d66f235ba0e3ceed9369cd6e0d65a80eef4
|
4
|
+
data.tar.gz: 32fdcba3dd949f193761fc5ea4ebf033baf025bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6487165d623bf7cbe4d47fd83f00e3899aab242eeb914dccecfb15c1c64befd119291074621fb62e75da398291a569957c424c390a8a78d147f5fd97526ba42
|
7
|
+
data.tar.gz: f2c5fa8944a2bad2106f1bc9702422977ac1a137912b59d82a78780ac7a38508ccf1aa1a3860ef7e7d6d5eb468e3178de214100c7f2912be86502c6c275f3ace
|
@@ -154,7 +154,7 @@ class EventFunctions
|
|
154
154
|
collection = @functions.collection(@scope)
|
155
155
|
if @options.allowNew
|
156
156
|
collection.push(obj) unless collection.includes(obj)
|
157
|
-
val = @filteredList(
|
157
|
+
val = @filteredList(!@options.allowNew,false,@options.allowNew,true)[0]
|
158
158
|
@updateValue @functions.modelValueFn(val)
|
159
159
|
|
160
160
|
keydownFunction: (search,typeAhead,template,input) =>
|
@@ -220,13 +220,13 @@ angular.module('FilteredSelect', [])
|
|
220
220
|
if !isNaN(left) && !isNaN(right)
|
221
221
|
return true if parseFloat(left) == parseFloat(right)
|
222
222
|
false
|
223
|
-
filteredList = (
|
224
|
-
if
|
223
|
+
filteredList = (similar,model,exact,full)->
|
224
|
+
if similar
|
225
225
|
bool = (left,right) ->
|
226
226
|
!!left.match(new RegExp("^" + right))
|
227
227
|
if exact
|
228
228
|
bool = (left,right) -> left == right
|
229
|
-
location = elements.search[0].selectionStart || elements.search.val().length
|
229
|
+
location = (if full then null else elements.search[0].selectionStart) || elements.search.val().length
|
230
230
|
if functions.isPrimative
|
231
231
|
obj = if model then scope.$eval(attrs.ngModel) else elements.search.val()[0..location - 1].replace(/^\s+/g,'') || ''
|
232
232
|
else
|