kea-rails 2.0.0.pre.alpha8 → 2.0.0.pre.alpha9
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: dfd428a9d60b70ebc40f6ab8e346f76050be3be2
|
4
|
+
data.tar.gz: 85576cc5db899c936a8e7a040c5ff12a70f66c0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09b69f5b315a2fc1b4ab967bf55472cecf37291612b0ab148ebd6f269f2956f15526f2abea46b3997c584b1a48ffc47d07876524721bf90933fa45a067eab929
|
7
|
+
data.tar.gz: 6ac017b70151502759c5751d9a9a130f47ba9f8e6a2c3c5ecc574cb49af2e238f0e0a9955c66ee415ef618388677ed3407cd48d19d519422b2a9f6737b84186d
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
this.showDropdown = ko.computed(function() {
|
32
32
|
return this.searchResults().length > 0 && this.hasFocus();
|
33
|
-
}, this, {deferEvaluation: true});
|
33
|
+
}, this, {deferEvaluation: true}).extend({ rateLimit: { timeout: 250, method: "notifyWhenChangesStop" } });
|
34
34
|
|
35
35
|
this.searchTerm.subscribe(function() {
|
36
36
|
if (this.searchTerm() && this.searchTerm().length > 0) {
|
@@ -34,6 +34,16 @@
|
|
34
34
|
};
|
35
35
|
}
|
36
36
|
|
37
|
+
if (typeof target.resetValidationState === 'undefined') {
|
38
|
+
target.resetValidationState = function resetValidationState() {
|
39
|
+
target.hasError(false);
|
40
|
+
target.isUnvalidated(true);
|
41
|
+
target.validationInProgress(false);
|
42
|
+
target.onNextValidationChange = null;
|
43
|
+
target.validationMessage(null);
|
44
|
+
};
|
45
|
+
}
|
46
|
+
|
37
47
|
if (typeof target.isBlank === 'undefined') {
|
38
48
|
target.isBlank = function isBlank(value) {
|
39
49
|
value = arguments.length === 0 ? target() : value;
|
@@ -167,6 +167,10 @@
|
|
167
167
|
Base.prototype.deserialize = function deserialize(data) {
|
168
168
|
this.persisted(true);
|
169
169
|
|
170
|
+
if (typeof this.resetValidationState === 'function') {
|
171
|
+
this.resetValidationState();
|
172
|
+
}
|
173
|
+
|
170
174
|
this.id = data.id;
|
171
175
|
this.resource_path = data.resource_path;
|
172
176
|
|
@@ -313,6 +317,16 @@
|
|
313
317
|
this.attachValidators(options);
|
314
318
|
this.isValidatable(true);
|
315
319
|
};
|
320
|
+
|
321
|
+
this.resetValidationState = function resetValidationState() {
|
322
|
+
that.forEachValidatableField(function(observable) {
|
323
|
+
observable.resetValidationState();
|
324
|
+
}, this);
|
325
|
+
|
326
|
+
that.forEachValidatableAssociation(function(association) {
|
327
|
+
association.resetValidationState();
|
328
|
+
});
|
329
|
+
};
|
316
330
|
|
317
331
|
this.validatableFields = function validatableFields() {
|
318
332
|
return [];
|
data/lib/kea-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kea-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.alpha9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan-Christian Foeh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|