netzke-basepack 0.12.5 → 0.12.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/javascripts/columns.js +3 -8
- data/lib/netzke-basepack.rb +4 -4
- data/lib/netzke/basepack/columns.rb +2 -2
- data/lib/netzke/basepack/fields.rb +1 -1
- data/lib/netzke/basepack/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
# 0.12.6 - 2015-07-11
|
2
|
+
* Regression: show cell editor on adding/editing a record in grid
|
3
|
+
* Fix occasional autoload-related problems
|
4
|
+
|
1
5
|
# 0.12.5 - 2015-07-07
|
2
6
|
* Fix potential problems caused by changing window.id on deleting grid records
|
3
|
-
|
7
|
+
|
4
8
|
# 0.12.4 - 2015-06-22
|
5
9
|
* Remove (broken) `load_inline_data` option
|
6
10
|
|
data/javascripts/columns.js
CHANGED
@@ -182,16 +182,11 @@ Ext.define("Netzke.mixins.Basepack.Columns", {
|
|
182
182
|
|
183
183
|
// Tries editing the first editable (i.e. not hidden, not read-only) sell
|
184
184
|
netzkeTryStartEditing: function(r){
|
185
|
-
var
|
186
|
-
|
187
|
-
// skip columns that cannot be edited
|
188
|
-
if (!(c.hidden == true || !c.editor || c.attrType == 'boolean')) {
|
189
|
-
return false;
|
190
|
-
}
|
191
|
-
editableIndex++;
|
185
|
+
var column = Ext.Array.findBy(this.columns, function(c){
|
186
|
+
return !(c.hidden || c.readOnly || c.attrType == 'boolean')
|
192
187
|
});
|
193
188
|
|
194
|
-
if (
|
189
|
+
if (column) {this.getPlugin('celleditor').startEdit(r, column);}
|
195
190
|
},
|
196
191
|
|
197
192
|
netzkeFilterTypeForAttrType: function(attrType){
|
data/lib/netzke-basepack.rb
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
require 'netzke-core'
|
3
3
|
require 'active_support/dependencies'
|
4
4
|
|
5
|
-
# Make components auto-loadable
|
6
|
-
ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
|
7
|
-
|
8
5
|
require 'netzke/basepack'
|
9
6
|
|
10
7
|
module Netzke
|
11
8
|
module Basepack
|
12
|
-
class Engine < Rails::Engine
|
9
|
+
class Engine < ::Rails::Engine
|
13
10
|
|
14
11
|
%w[en de ru es].each do |lang|
|
15
12
|
I18n.load_path << File.dirname(__FILE__) + "/../locales/#{lang}.yml"
|
16
13
|
end
|
14
|
+
|
15
|
+
# Make components and modules auto-loadable
|
16
|
+
config.autoload_paths << File.dirname(__FILE__)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -54,7 +54,7 @@ module Netzke
|
|
54
54
|
has_primary_column = false
|
55
55
|
|
56
56
|
columns.each do |c|
|
57
|
-
c = ColumnConfig.new(c, data_adapter)
|
57
|
+
c = Netzke::Basepack::ColumnConfig.new(c, data_adapter)
|
58
58
|
|
59
59
|
# merge with column declaration
|
60
60
|
send(:"#{c.name}_column", c) if respond_to?(:"#{c.name}_column")
|
@@ -106,7 +106,7 @@ module Netzke
|
|
106
106
|
def insert_primary_column(cols)
|
107
107
|
primary_key = data_adapter.primary_key
|
108
108
|
raise "Model #{data_adapter.model_class.name} does not have a primary column" if primary_key.blank?
|
109
|
-
c = ColumnConfig.new(data_adapter.primary_key, data_adapter)
|
109
|
+
c = Netzke::Basepack::ColumnConfig.new(data_adapter.primary_key, data_adapter)
|
110
110
|
send(:"#{c.name}_column", c) if respond_to?(:"#{c.name}_column")
|
111
111
|
augment_column_config(c)
|
112
112
|
cols.insert(0, c)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netzke-basepack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: netzke-core
|