[Lada-commits] [PATCH 3 of 3] changes on the margins, erratic behaviour is not fixed
Wald Commits
scm-commit at wald.intevation.org
Tue May 12 15:09:25 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1431436043 -7200
# Node ID 380edfecac675fded85eca1608483da397836866
# Parent 5ee59111b1881a0eb88d1508a764d77690b4a79d
changes on the margins, erratic behaviour is not fixed
diff -r 5ee59111b188 -r 380edfecac67 app/controller/grid/Messmethode.js
--- a/app/controller/grid/Messmethode.js Tue May 12 14:53:54 2015 +0200
+++ b/app/controller/grid/Messmethode.js Tue May 12 15:07:23 2015 +0200
@@ -22,7 +22,8 @@
'messmethodengrid': {
edit: this.gridSave,
canceledit: this.cancelEdit,
- select: this.selectRow
+ select: this.selectRow,
+ deselect: this.deselectRow
},
'messmethodengrid button[action=add]': {
click: this.add
@@ -147,6 +148,14 @@
},
/**
+ * Clear the nuklideGrid when a MMT Row is deselected
+ */
+ deselectRow: function(row, record, index){
+ var ngrid = row.view.up('window').down('nuklidegrid');
+ ngrid.initData();
+ },
+
+ /**
* This function syncs the Messmethoden-Messgroessen Array
* With the Nuklide Store.
* It simply overwrites the Array
diff -r 5ee59111b188 -r 380edfecac67 app/view/grid/Messmethoden.js
--- a/app/view/grid/Messmethoden.js Tue May 12 14:53:54 2015 +0200
+++ b/app/view/grid/Messmethoden.js Tue May 12 15:07:23 2015 +0200
@@ -22,9 +22,10 @@
viewConfig: {
deferEmptyText: false
},
- //margin: '0, 0, 5, 5',
+ margin: '0, 5, 5, 0',
recordId: null,
+ allowDeselect: true,
initComponent: function() {
var i18n = Lada.getApplication().bundle;
diff -r 5ee59111b188 -r 380edfecac67 app/view/grid/Nuklide.js
--- a/app/view/grid/Nuklide.js Tue May 12 14:53:54 2015 +0200
+++ b/app/view/grid/Nuklide.js Tue May 12 15:07:23 2015 +0200
@@ -23,9 +23,10 @@
deferEmptyText: false,
markDirty: false //Remove Dirty-Flags
},
- //margin: '0, 0, 5, 5',
+ margin: '0, 0, 5, 5',
recordId: null,
+ allowDeselect: true,
initComponent: function() {
var i18n = Lada.getApplication().bundle;
@@ -110,7 +111,7 @@
},
initData: function() {
if (this.store) {
- this.store.reload();
+ this.store.removeAll();
}
},
setData: function(store) {
More information about the Lada-commits
mailing list