redmine_extensions 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/assets/javascripts/redmine_extensions/easy_togglers.js +2 -2
- data/app/assets/javascripts/redmine_extensions/jquery.entityarray.js +3 -0
- data/app/helpers/redmine_extensions/application_helper.rb +2 -1
- data/lib/generators/redmine_extensions/entity/templates/mail_added.html.erb.erb +1 -1
- data/lib/generators/redmine_extensions/entity/templates/mail_added.text.erb.erb +2 -2
- data/lib/generators/redmine_extensions/entity/templates/mail_updated.text.erb.erb +2 -2
- data/lib/redmine_extensions/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 34d238a1cb1834e5e411e1d09c9d8899f697e33ab273de095515831a3bc0261e
|
4
|
+
data.tar.gz: 27266391a47412629626f1b1c3e273324380b69dd0b8d7303f6800408665b4c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a793ac13f928df39fcb333415173de7754df9f86e43fa0225134122f489d9669bec00a46be55f07f9842689caec190dff9a1456ad04d8e2a076c0334bc03c3
|
7
|
+
data.tar.gz: bba5883ea1a29258eeee87ac2016e7880026a659ee3fa89b93bfc48ebb3da54e4ee6c370c759284abfcb0fe123b42c3559264a026a630f5c57c28ffdc789a226
|
@@ -38,8 +38,8 @@ window.EasyToggler = new function() {
|
|
38
38
|
toggle(el);
|
39
39
|
};
|
40
40
|
|
41
|
-
this.ensureToggle = function() {
|
42
|
-
const list =
|
41
|
+
this.ensureToggle = function(context = document) {
|
42
|
+
const list = context.querySelectorAll('*[data-toggle]');
|
43
43
|
for (let i = 0; i < list.length; ++i) {
|
44
44
|
const item = list.item(i);
|
45
45
|
window.EasyToggler.ensureToggleItem(item);
|
@@ -36,10 +36,12 @@
|
|
36
36
|
if (!entity.id || entity === "" || this.entities[entity.id]) {
|
37
37
|
return null;
|
38
38
|
}
|
39
|
+
const dataCyInputName = this.options.inputNames.replaceAll("[", "").replaceAll("]", "");
|
39
40
|
|
40
41
|
entity.element = $("<span/>")
|
41
42
|
.text(entity.name)
|
42
43
|
.addClass(entity.className || this.options.className)
|
44
|
+
.attr("data-cy", `card__${dataCyInputName}--id_${entity.id}`)
|
43
45
|
.appendTo(this.element)
|
44
46
|
.after(" ");
|
45
47
|
|
@@ -53,6 +55,7 @@
|
|
53
55
|
.html(' ')
|
54
56
|
.addClass("icon icon-del")
|
55
57
|
.appendTo(entity.element)
|
58
|
+
.attr("data-cy", `button__delete--${dataCyInputName}_id_${entity.id}`)
|
56
59
|
.data("entity-id", entity.id)
|
57
60
|
.click(function () {
|
58
61
|
self.removeEntity($(this).data("entity-id"));
|
@@ -289,8 +289,9 @@ module RedmineExtensions
|
|
289
289
|
source = "'#{jsonpath_or_array}'"
|
290
290
|
end
|
291
291
|
|
292
|
+
html_options = options[:html_options] || {}
|
292
293
|
content_tag(:span, class: 'easy-multiselect-tag-container', data: { cy: "container_old_autocomplete--#{name}" }) do
|
293
|
-
search_field_tag('', '',
|
294
|
+
search_field_tag('', '', html_options.merge(id: options[:id], data: { cy: "search_old_autocomplete--#{name}" }.merge(html_options[:data] || {}))) +
|
294
295
|
late_javascript_tag("$('##{options[:id]}').easymultiselect({multiple: #{options[:multiple]}, rootElement: #{options[:rootElement].to_json}, inputName: '#{name}', preload: #{options[:preload]}, combo: #{options[:combo]}, source: #{source}, selected: #{selected_values.to_json}, select_first_value: #{options[:select_first_value]}, load_immediately: #{options[:load_immediately]}, autocomplete_options: #{(options[:jquery_auto_complete_options] || {}).to_json} });")
|
295
296
|
end
|
296
297
|
end
|
@@ -1 +1 @@
|
|
1
|
-
<h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
|
1
|
+
<h1><%%= link_to(@<%= model_name_underscored %>.to_s, @<%= model_name_underscored %>_url) %></h1>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%%= @<%= model_name_underscored %>.to_s %>
|
2
|
-
<%%= @<%= model_name_underscored %>_url %>
|
1
|
+
<%%= @<%= model_name_underscored %>.to_s %>
|
2
|
+
<%%= @<%= model_name_underscored %>_url %>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%%= @<%= model_name_underscored %>.to_s %>
|
2
|
-
<%%= @<%= model_name_underscored %>_url %>
|
1
|
+
<%%= @<%= model_name_underscored %>.to_s %>
|
2
|
+
<%%= @<%= model_name_underscored %>_url %>
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Easy Software Ltd
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -175,7 +175,7 @@ homepage: https://www.easyredmine.com
|
|
175
175
|
licenses:
|
176
176
|
- GPL-2.0
|
177
177
|
metadata: {}
|
178
|
-
post_install_message:
|
178
|
+
post_install_message:
|
179
179
|
rdoc_options: []
|
180
180
|
require_paths:
|
181
181
|
- lib
|
@@ -190,9 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
|
-
|
194
|
-
|
195
|
-
signing_key:
|
193
|
+
rubygems_version: 3.3.22
|
194
|
+
signing_key:
|
196
195
|
specification_version: 4
|
197
196
|
summary: Redmine Extensions is set of useful features for Redmine. Main focus is on
|
198
197
|
development helpers, but many users can find it helpfull
|