Mercurial > lada > lada-client
diff app/model/StaOrt.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | f7446ebfe5d0 |
children |
line wrap: on
line diff
--- a/app/model/StaOrt.js Fri Oct 31 21:28:31 2014 +0100 +++ b/app/model/StaOrt.js Fri Oct 31 23:23:32 2014 +0100 @@ -11,23 +11,44 @@ */ Ext.define('Lada.model.StaOrt', { extend: 'Lada.model.Base', - fields: [ - {name: "id"}, - {name: "bezeichnung"}, - {name: "beschreibung"}, - {name: "unscharf"}, - {name: "nutsCode"}, - {name: "koordXExtern"}, - {name: "koordYExtern"}, - {name: "hoeheLand"}, - {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, - {name: "longitude", type: 'float'}, - {name: "latitude", type: 'float'}, - {name: "staatId"}, - {name: "gemId"}, - {name: "otyp"} - ], + + fields: [{ + name: "id" + }, { + name: "bezeichnung" + }, { + name: "beschreibung" + }, { + name: "unscharf" + }, { + name: "nutsCode" + }, { + name: "koordXExtern" + }, { + name: "koordYExtern" + }, { + name: "hoeheLand" + }, { + name: "letzteAenderung", + type: 'date', + convert: Lada.lib.Helpers.ts2date, + defaultValue: new Date() + }, { + name: "longitude", + type: 'float' + }, { + name: "latitude", + type: 'float' + }, { + name: "staatId" + }, { + name: "gemId" + }, { + name: "otyp" + }], + idProperty: "id", + proxy: { type: 'rest', url: 'server/rest/sta_ort',