romo 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/assets/js/romo/datepicker.js +1 -1
- data/assets/js/romo/dropdown.js +6 -1
- data/assets/js/romo/modal.js +6 -1
- data/assets/js/romo/select.js +6 -1
- data/assets/js/romo/tooltip.js +6 -1
- data/lib/romo/version.rb +1 -1
- metadata +3 -3
@@ -50,7 +50,7 @@ RomoDatepicker.prototype.doBindElem = function() {
|
|
50
50
|
// incorrectly remove the wrapper. Any value will do - I chose 100 arbitrarily.
|
51
51
|
setTimeout($.proxy(function() {
|
52
52
|
Romo.parentChildElems.add(this.elem, [elemWrapper]);
|
53
|
-
}, this),
|
53
|
+
}, this), 1);
|
54
54
|
|
55
55
|
this.elem.attr('autocomplete', 'off');
|
56
56
|
|
data/assets/js/romo/dropdown.js
CHANGED
@@ -77,7 +77,12 @@ RomoDropdown.prototype.doInitPopup = function() {
|
|
77
77
|
|
78
78
|
// the popup should be treated like a child elem. add it to Romo's
|
79
79
|
// parent-child elems so it will be removed when the elem is removed.
|
80
|
-
|
80
|
+
// delay adding it b/c other components may `append` generated dropdowns
|
81
|
+
// meaning the dropdown is removed and then re-added. if added immediately
|
82
|
+
// the "remove" part will incorrectly remove the popup.
|
83
|
+
setTimeout($.proxy(function() {
|
84
|
+
Romo.parentChildElems.add(this.elem, [this.popupElem]);
|
85
|
+
}, this), 1);
|
81
86
|
}
|
82
87
|
|
83
88
|
RomoDropdown.prototype.doInitBody = function() {
|
data/assets/js/romo/modal.js
CHANGED
@@ -51,7 +51,12 @@ RomoModal.prototype.doInitPopup = function() {
|
|
51
51
|
|
52
52
|
// the popup should be treated like a child elem. add it to Romo's
|
53
53
|
// parent-child elems so it will be removed when the elem is removed.
|
54
|
-
|
54
|
+
// delay adding it b/c other components may `append` generated modals
|
55
|
+
// meaning the modal is removed and then re-added. if added immediately
|
56
|
+
// the "remove" part will incorrectly remove the popup.
|
57
|
+
setTimeout($.proxy(function() {
|
58
|
+
Romo.parentChildElems.add(this.elem, [this.popupElem]);
|
59
|
+
}, this), 1);
|
55
60
|
}
|
56
61
|
|
57
62
|
RomoModal.prototype.doInitBody = function() {
|
data/assets/js/romo/select.js
CHANGED
@@ -132,7 +132,12 @@ RomoSelect.prototype._buildSelectDropdownElem = function() {
|
|
132
132
|
|
133
133
|
// the elem wrapper should be treated like a child elem. add it to Romo's
|
134
134
|
// parent-child elems so it will be removed when the elem (select) is removed.
|
135
|
-
|
135
|
+
// delay adding it b/c other components may `append` generated selects
|
136
|
+
// meaning the select is removed and then re-added. if added immediately
|
137
|
+
// the "remove" part will incorrectly remove the wrapper.
|
138
|
+
setTimeout($.proxy(function() {
|
139
|
+
Romo.parentChildElems.add(this.elem, [this.elemWrapper]);
|
140
|
+
}, this), 1);
|
136
141
|
|
137
142
|
var caretClass = this.elem.data('romo-select-caret') || this.defaultCaretClass;
|
138
143
|
if (caretClass !== undefined && caretClass !== 'none') {
|
data/assets/js/romo/tooltip.js
CHANGED
@@ -70,7 +70,12 @@ RomoTooltip.prototype.doInitPopup = function() {
|
|
70
70
|
|
71
71
|
// the popup should be treated like a child elem. add it to Romo's
|
72
72
|
// parent-child elems so it will be removed when the elem is removed.
|
73
|
-
|
73
|
+
// delay adding it b/c other components may `append` generated tooltips
|
74
|
+
// meaning the tooltip is removed and then re-added. if added immediately
|
75
|
+
// the "remove" part will incorrectly remove the popup.
|
76
|
+
setTimeout($.proxy(function() {
|
77
|
+
Romo.parentChildElems.add(this.elem, [this.popupElem]);
|
78
|
+
}, this), 1);
|
74
79
|
}
|
75
80
|
|
76
81
|
RomoTooltip.prototype.doInitBody = function() {
|
data/lib/romo/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 14
|
9
|
-
-
|
10
|
-
version: 0.14.
|
9
|
+
- 1
|
10
|
+
version: 0.14.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly Redding
|