[Lada-commits] [PATCH 1 of 6] Code cleanup
Wald Commits
scm-commit at wald.intevation.org
Sat Dec 13 14:13:51 CET 2014
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1418383102 -3600
# Node ID 44e054626bdd726782c76f4c6890bb607883fa85
# Parent 369917727c862f86946f728f4c456761fc86b42d
Code cleanup.
diff -r 369917727c86 -r 44e054626bdd app/view/proben/Edit.js
--- a/app/view/proben/Edit.js Thu Dec 11 18:54:21 2014 +0100
+++ b/app/view/proben/Edit.js Fri Dec 12 12:18:22 2014 +0100
@@ -18,8 +18,6 @@
],
title: 'Maske für §3-Proben',
- // Make size of the dialog dependend of the available space.
- // TODO: Handle resizing the browser window.
autoShow: true,
autoScroll: true,
modal: true,
@@ -34,101 +32,12 @@
scope: this,
handler: this.close
}];
- this.width = 700// Ext.getBody().getViewSize().width - 30;
+ this.width = 700;
this.height = Ext.getBody().getViewSize().height - 30;
// InitialConfig is the config object passed to the constructor on
// creation of this window. We need to pass it throuh to the form as
// we need the "modelId" param to load the correct item.
- /*
- this.items = [{
- xtype: 'fieldset',
- title: 'Probenangaben',
- layout: 'hbox',
- defaults: {
- labelWidth: 150
- },
- items: [{
- layout: 'vbox',
- border: 0,
- items: [{
- xtype: 'mst',
- name: 'mstId',
- fieldLabel: 'Messstelle',
- allowBlank: false
- }, {
- xtype: 'textfield',
- name: 'hauptprobenNr',
- maxLength: 20,
- fieldLabel: 'Hauptprobennr.'
- }]
- }]
- */
-/*
- items: [{
- layout: 'hbox',
- border: 0,
- items: [{
- layout: 'vbox',
- border: 0,
- items: [{
- xtype: 'mst',
- name: 'mstId',
- fieldLabel: 'Messstelle',
- allowBlank: false
- }, {
- xtype: 'textfield',
- name: 'hauptprobenNr',
- maxLength: 20,
- fieldLabel: 'Hauptprobennr.'
- }]
- }, {
- xtype: 'fieldset',
- title: 'Erweiterte Probenangaben',
- collapsible: true,
- collapsed: true,
- items: [{
- xtype: 'datenbasis',
- id: 'datenbasis',
- editable: false,
- name: 'datenbasisId',
- fieldLabel: 'Datenbasis'
- }, {
- xtype: 'betriebsart',
- name: 'baId',
- fieldLabel: 'Betriebsart'
- }, {
- xtype: 'testdatensatz',
- name: 'test',
- fieldLabel: 'Testdatensatz',
- allowBlank: false
- }, {
- xtype: 'probenart',
- id: 'probenart',
- editable: false,
- name: 'probenartId',
- fieldLabel: 'Probenart',
- allowBlank: false
- }, {
- xtype: 'numberfield',
- allowDecimals: false,
- name: 'probeNehmerId',
- fieldLabel: 'Probennehmer'
- }, {
- xtype: 'netzbetreiber',
- name: 'netzbetreiberId',
- editable: false,
- fieldLabel: 'Netzbetreiber',
- allowBlank: false
- }, {
- xtype: 'textfield',
- name: 'x11',
- fieldLabel: 'Datensatzerzeuger'
- }]
- }]
- }]
- */
-// }];
var form = Ext.create('Lada.view.proben.EditForm',
this.initialConfig);
this.items = [{
More information about the Lada-commits
mailing list