netzke-basepack 0.3.3 → 0.3.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.3.3.1
2
+ Obviously using "new" as a property name in JavaScript isn't liked by Safari. Fixed.
3
+
1
4
  v0.3.3
2
5
  Bug fix: application not loading the widget specified in the URL (Ext.History-related).
3
6
  Some code refactoring and readability improvements.
@@ -162,7 +162,7 @@ module Netzke
162
162
  }, this);
163
163
 
164
164
  var r = new this.Row(rowConfig); // TODO: add default values
165
- r.new = true; // to distinguish new records
165
+ r.is_new = true; // to distinguish new records
166
166
  r.set('id', r.id); // otherwise later r.get('id') returns empty string
167
167
  this.stopEditing();
168
168
  this.store.add(r);
@@ -235,7 +235,7 @@ module Netzke
235
235
 
236
236
  Ext.each(this.store.getModifiedRecords(),
237
237
  function(r) {
238
- if (r.new) {
238
+ if (r.is_new) {
239
239
  newRecords.push(Ext.apply(r.getChanges(), {id:r.get('id')}));
240
240
  } else {
241
241
  updatedRecords.push(Ext.apply(r.getChanges(), {id:r.get('id')}));
@@ -257,7 +257,7 @@ module Netzke
257
257
  // commit those rows that have successfully been updated/created
258
258
  var modRecords = [].concat(this.store.getModifiedRecords()) // there must be a better way to clone an array...
259
259
  Ext.each(modRecords, function(r){
260
- var idsToSearch = r.new ? m.modRecordIds.create : m.modRecordIds.update
260
+ var idsToSearch = r.is_new ? m.modRecordIds.create : m.modRecordIds.update
261
261
  if (idsToSearch.indexOf(r.id) >= 0) r.commit();
262
262
  })
263
263
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{netzke-basepack}
5
- s.version = "0.3.3"
5
+ s.version = "0.3.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sergei Kozlov"]
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.3.3
4
+ version: 0.3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergei Kozlov