redmine_extensions 0.3.9 → 0.3.10
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '00191d398814832224dac46c66b2f47e74f116f6d039a0a8a75709bbc5ae22d7'
|
4
|
+
data.tar.gz: 8b13df157ec089dfec4a2998ca18426ff12220c5860cd8064dec936aee5e430f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c0fa8d4aa1b6fce7e0f84ba65e3093fb4a4269ec2a565401a4e16fe513d5173433a7fddb2e566f8d3725471de989ede44011255d1b458e58692cc03663f18cf
|
7
|
+
data.tar.gz: 2d78f90b6d08d9d9e91c723dcd46b91a11dd0ab63da65459053c7d6a90a718850c6dd6d6efb34648bf155b78d672182e3c0568a0c81b58b7b0f5b201893a86f3
|
@@ -90,7 +90,8 @@ EasyGem.schedule.require(function () {
|
|
90
90
|
load_immediately: false,
|
91
91
|
show_toggle_button: true,
|
92
92
|
select_first_value: true,
|
93
|
-
autocomplete_options: {}
|
93
|
+
autocomplete_options: {},
|
94
|
+
mulstiselectOnChange: null // onchange of multiselect input function
|
94
95
|
},
|
95
96
|
|
96
97
|
_create: function () {
|
@@ -138,6 +139,12 @@ EasyGem.schedule.require(function () {
|
|
138
139
|
this.element.css('margin-right', 0);
|
139
140
|
}
|
140
141
|
},
|
142
|
+
setMulstiselectOnChange: function (fn) {
|
143
|
+
this.options.mulstiselectOnChange = fn;
|
144
|
+
},
|
145
|
+
mulstiselectOnChange: function(select, fn) {
|
146
|
+
if (fn) select.on("change", fn);
|
147
|
+
},
|
141
148
|
|
142
149
|
_createToggleButton: function () {
|
143
150
|
var that = this;
|
@@ -153,6 +160,7 @@ EasyGem.schedule.require(function () {
|
|
153
160
|
option.prop('selected', that.getValue().indexOf(v.id) > -1);
|
154
161
|
select.append(option);
|
155
162
|
});
|
163
|
+
that.mulstiselectOnChange(select, that.options.mulstiselectOnChange);
|
156
164
|
var $container = $elem.closest('.easy-multiselect-tag-container');
|
157
165
|
$container.find(':input').prop('disabled', true);
|
158
166
|
$container.children().hide();
|
@@ -183,8 +183,8 @@ module RedmineExtensions
|
|
183
183
|
|
184
184
|
def container_class
|
185
185
|
s = (@container_class.presence || css_classes[:container]).to_s
|
186
|
-
s
|
187
|
-
s
|
186
|
+
s += ' collapsible' if collapsible?
|
187
|
+
s += ' collapsed' if collapsed?
|
188
188
|
|
189
189
|
s
|
190
190
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Easy Software Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
|
-
rubygems_version: 3.0.
|
214
|
+
rubygems_version: 3.0.4
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Redmine Extensions is set of usefull features for Redmine. Main focus is
|