[Lada-commits] [PATCH 4 of 4] Code style
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 18 11:22:17 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1455790902 -3600
# Node ID 479782c96efaa6b6ba003d01fe2283b76d59068e
# Parent 4d4de99bbe53e34a95b493aac1f05b7a01b8dff9
Code style.
diff -r 4d4de99bbe53 -r 479782c96efa app/view/grid/Messung.js
--- a/app/view/grid/Messung.js Thu Feb 18 11:21:22 2016 +0100
+++ b/app/view/grid/Messung.js Thu Feb 18 11:21:42 2016 +0100
@@ -253,14 +253,15 @@
this.readOnly = b;
if (b === true) {
//Readonly
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').disable();
}
this.down('button[action=delete]').disable();
this.down('button[action=add]').disable();
- }else{
+ }
+ else {
//Writable
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').enable();
}
//this.down('button[action=delete]').enable();
diff -r 4d4de99bbe53 -r 479782c96efa app/view/grid/Ortszuordnung.js
--- a/app/view/grid/Ortszuordnung.js Thu Feb 18 11:21:22 2016 +0100
+++ b/app/view/grid/Ortszuordnung.js Thu Feb 18 11:21:42 2016 +0100
@@ -135,14 +135,15 @@
this.readOnly = b;
if (b) {
//Readonly
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').disable();
}
this.down('button[action=delete]').disable();
this.down('button[action=add]').disable();
- }else{
+ }
+ else {
//Writable
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').enable();
}
//this.down('button[action=delete]').enable();
diff -r 4d4de99bbe53 -r 479782c96efa app/view/grid/PKommentar.js
--- a/app/view/grid/PKommentar.js Thu Feb 18 11:21:22 2016 +0100
+++ b/app/view/grid/PKommentar.js Thu Feb 18 11:21:42 2016 +0100
@@ -134,14 +134,15 @@
this.readOnly = b;
if (b) {
//Readonly
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').disable();
}
this.down('button[action=delete]').disable();
this.down('button[action=add]').disable();
- }else{
+ }
+ else {
//Writable
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').enable();
}
//this.down('button[action=delete]').enable();
diff -r 4d4de99bbe53 -r 479782c96efa app/view/grid/Probenzusatzwert.js
--- a/app/view/grid/Probenzusatzwert.js Thu Feb 18 11:21:22 2016 +0100
+++ b/app/view/grid/Probenzusatzwert.js Thu Feb 18 11:21:42 2016 +0100
@@ -180,14 +180,15 @@
this.readOnly = b;
if (b) {
//Readonly
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').disable();
}
this.down('button[action=delete]').disable();
this.down('button[action=add]').disable();
- }else{
+ }
+ else {
//Writable
- if (this.getPlugin('rowedit')){
+ if (this.getPlugin('rowedit')) {
this.getPlugin('rowedit').enable();
}
//this.down('button[action=delete]').enable();
More information about the Lada-commits
mailing list