edgarj 4.04.00 → 4.04.01
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6bf27254600b6b45051cceeaa5207bb4444ed1f
|
|
4
|
+
data.tar.gz: 6e771d6939ffa603da365fd7cd4868590ef4e80d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa01bedc497c6cab13a28fdbae2d5eefed989eb700ff550d3aedaf439042725f9fb1376dcf4aa43aed8ee6a0641712b7c550322dea38c15c616d860703f340cc
|
|
7
|
+
data.tar.gz: d1ac0b607e0602fb0149467ce411cfeeb75270ae3894301dce9a51f960b8afef6feda23ff8eb0cb081f93b7e16c0f42d8918f8974f9d05120a175fea4ff882b9
|
data/README.rdoc
CHANGED
|
@@ -40,11 +40,12 @@ Edgarj 0.* for Rails 3.2
|
|
|
40
40
|
|
|
41
41
|
== Building Package
|
|
42
42
|
|
|
43
|
+
1. make sure to increment lib/edgarj/version.rb
|
|
43
44
|
1. check if all tests are passed:
|
|
44
45
|
$ rake test
|
|
45
46
|
1. commit any updated files.
|
|
46
47
|
1. Gem package is built under pkg/edgarj-N.NN.NN.gem by:
|
|
47
48
|
$ rake app:edgarj:build_gem
|
|
48
|
-
1. commit Gemfile.lock
|
|
49
|
+
1. commit Gemfile.lock when it is updated.
|
|
49
50
|
1. puch the package to rubygems site by:
|
|
50
51
|
$ gem push pkg/edgarj-N.NN.NN.gem
|
|
@@ -45,6 +45,13 @@ div#edgarj_list table.list tr:hover, div#edgarj_popup_list table.list tr:hover {
|
|
|
45
45
|
background-color: #8fc;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
div#edgarj_popup_list td.align_right {
|
|
49
|
+
text-align: right;
|
|
50
|
+
}
|
|
51
|
+
div#edgarj_popup_list td.align_center {
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
/* form by <table> */
|
|
49
56
|
form {
|
|
50
57
|
margin: 0em;
|
|
@@ -9,7 +9,7 @@ module Edgarj
|
|
|
9
9
|
# * column_value
|
|
10
10
|
#
|
|
11
11
|
# and the following optional methods:
|
|
12
|
-
# *
|
|
12
|
+
# * tag_options
|
|
13
13
|
# * column_header_label
|
|
14
14
|
#
|
|
15
15
|
# as wells as the following for backward compatibility:
|
|
@@ -35,7 +35,8 @@ module Edgarj
|
|
|
35
35
|
rec.inspect
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
# HTML tag options (e.g. css-class) in Hash
|
|
39
|
+
def tag_options
|
|
39
40
|
{}
|
|
40
41
|
end
|
|
41
42
|
|
|
@@ -80,7 +81,6 @@ module Edgarj
|
|
|
80
81
|
|
|
81
82
|
# ActiveRecord::ConnectionAdapters::[DRIVER]::Column wrapper
|
|
82
83
|
class Normal < Base
|
|
83
|
-
# @param vc [ViewContext]
|
|
84
84
|
# @param model [AR]
|
|
85
85
|
# @param name [String]
|
|
86
86
|
def initialize(model, name)
|
|
@@ -128,12 +128,12 @@ module Edgarj
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
def
|
|
131
|
+
def tag_options
|
|
132
132
|
case @ar_column_info.type
|
|
133
133
|
when :integer
|
|
134
|
-
{
|
|
134
|
+
{class: 'align_right'}
|
|
135
135
|
when :boolean
|
|
136
|
-
{
|
|
136
|
+
{class: 'align_center'}
|
|
137
137
|
else
|
|
138
138
|
{}
|
|
139
139
|
end
|
|
@@ -32,7 +32,7 @@ module Edgarj
|
|
|
32
32
|
|
|
33
33
|
# <td> options
|
|
34
34
|
def td_options(rec, col)
|
|
35
|
-
col.
|
|
35
|
+
col.tag_options
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -45,12 +45,10 @@ module Edgarj
|
|
|
45
45
|
|
|
46
46
|
# <td> options
|
|
47
47
|
#
|
|
48
|
-
#
|
|
48
|
+
# merge css to let Edgarj.click_listCB() work with base result.
|
|
49
49
|
# When the column is parent, do nothing.
|
|
50
50
|
def td_options(rec, col)
|
|
51
|
-
super.merge(
|
|
52
|
-
style: 'cursor:pointer;',
|
|
53
|
-
class: '_edgarj_list_column')
|
|
51
|
+
super.merge(class: '_edgarj_list_column'){|key, _old, _new| [_old, _new].flatten}
|
|
54
52
|
end
|
|
55
53
|
end
|
|
56
54
|
end
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
$('#edgarj_form_popup').html("<%= j(render 'index') %>");
|
|
2
2
|
$('#edgarj_form_popup').dialog('option', 'title',
|
|
3
3
|
'<%= params[:title] || title || t('edgarj.form.popup.title') % model_label %>');
|
|
4
|
-
$('#edgarj_form_popup').
|
|
4
|
+
$('#edgarj_form_popup').
|
|
5
|
+
dialog('open').
|
|
6
|
+
dialog('option', 'width', 'auto');
|
data/lib/edgarj/version.rb
CHANGED