romo 0.14.4 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/js/romo/inline.js +10 -12
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29038a7b155e52db93e90ea26efff083381caab7
|
4
|
+
data.tar.gz: 5002aeb2208a9c85108a12289f8c2802d4321e2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b0beb45e3d30f3ed2fd65807c1ff473fe2462dc8ea68d49067534016b4698f5ccb8ba745b3f555d8b5dc727a57ca8bf034bd4e627f286ea216da2f0db23744
|
7
|
+
data.tar.gz: beef77e14c6f677659082312d94a84c8bc1302f86d1e4f3149d6b1db6457ec05c9be1eb2a7e177efd4a5af8b691cf681e422137ace38c8c97f4ca6f81bfb0a97
|
data/assets/js/romo/inline.js
CHANGED
@@ -10,14 +10,10 @@ var RomoInline = function(element) {
|
|
10
10
|
this.dismissElem = undefined;
|
11
11
|
|
12
12
|
this.elem.on('inline:triggerDismiss', $.proxy(this.onDismissClick, this));
|
13
|
-
this.elem.on('inline:
|
14
|
-
this.
|
13
|
+
this.elem.on('inline:triggerShow', $.proxy(function(e) {
|
14
|
+
this.doShow();
|
15
15
|
}, this));
|
16
16
|
|
17
|
-
this.elem.on('invoke:invoke', $.proxy(function(e, invoke) {
|
18
|
-
this.doInvoke();
|
19
|
-
return false;
|
20
|
-
}, this));
|
21
17
|
this.elem.on('invoke:loadStart', $.proxy(function(e, invoke) {
|
22
18
|
this.doLoadStart();
|
23
19
|
return false;
|
@@ -40,24 +36,20 @@ RomoInline.prototype.doInit = function() {
|
|
40
36
|
// override as needed
|
41
37
|
}
|
42
38
|
|
43
|
-
RomoInline.prototype.doInvoke = function() {
|
44
|
-
this.elem.show();
|
45
|
-
this.toggleElem.hide();
|
46
|
-
this.elem.trigger('inline:invoke', [this]);
|
47
|
-
}
|
48
|
-
|
49
39
|
RomoInline.prototype.doLoadStart = function() {
|
50
40
|
this.elem.html('');
|
51
41
|
this.elem.trigger('inline:loadStart', [this]);
|
52
42
|
}
|
53
43
|
|
54
44
|
RomoInline.prototype.doLoadSuccess = function(data) {
|
45
|
+
this.doShow();
|
55
46
|
Romo.initHtml(this.elem, data);
|
56
47
|
this.doBindDismiss();
|
57
48
|
this.elem.trigger('inline:loadSuccess', [data, this]);
|
58
49
|
}
|
59
50
|
|
60
51
|
RomoInline.prototype.doLoadError = function(xhr) {
|
52
|
+
this.doShow();
|
61
53
|
this.elem.trigger('inline:loadError', [xhr, this]);
|
62
54
|
}
|
63
55
|
|
@@ -85,6 +77,12 @@ RomoInline.prototype.doDismiss = function() {
|
|
85
77
|
this.elem.trigger('inline:dismiss', [this]);
|
86
78
|
}
|
87
79
|
|
80
|
+
RomoInline.prototype.doShow = function() {
|
81
|
+
this.elem.show();
|
82
|
+
this.toggleElem.hide();
|
83
|
+
this.elem.trigger('inline:show', [this]);
|
84
|
+
}
|
85
|
+
|
88
86
|
Romo.onInitUI(function(e) {
|
89
87
|
Romo.initUIElems(e, '[data-romo-inline-auto="true"]').romoInline();
|
90
88
|
});
|
data/lib/romo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2016-01-
|
13
|
+
date: 2016-01-26 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|