erp_app 3.0.8 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/erp_app/version.rb +1 -1
- data/public/javascripts/extjs/MultiCellSelectionModel.js +4 -5
- data/spec/dummy/db/schema.rb +806 -0
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/adam.log +1 -0
- data/spec/dummy/log/spec.log +92886 -0
- metadata +40 -12
data/lib/erp_app/version.rb
CHANGED
@@ -140,7 +140,7 @@ Ext.define('Compass.MultiCellSelectionModel', {
|
|
140
140
|
|
141
141
|
if(me.allowDeselect){
|
142
142
|
|
143
|
-
var index = this.selected.items
|
143
|
+
var index = Ext.Array.indexOf(this.selected.items, cell);
|
144
144
|
this.selected.items.splice(index,1);
|
145
145
|
me.primaryView.onCellDeselect(me.getCurrentPosition());
|
146
146
|
|
@@ -211,9 +211,8 @@ Ext.define('Compass.MultiCellSelectionModel', {
|
|
211
211
|
return false;
|
212
212
|
|
213
213
|
}
|
214
|
-
|
215
|
-
return this.selected.items
|
216
|
-
|
214
|
+
|
215
|
+
return Ext.Array.indexOf(this.selected.items, record) !== -1;
|
217
216
|
},
|
218
217
|
|
219
218
|
selectWithEvent: function(record, e) {
|
@@ -231,7 +230,7 @@ Ext.define('Compass.MultiCellSelectionModel', {
|
|
231
230
|
|
232
231
|
if(me.allowDeselect){
|
233
232
|
|
234
|
-
var index = this.selected.items
|
233
|
+
var index = Ext.Array.indexOf(this.selected.items, cell);
|
235
234
|
this.selected.items.splice(index,1);
|
236
235
|
me.primaryView.onCellDeselect(me.getCurrentPosition());
|
237
236
|
|