Mercurial > lada > lada-client
diff app/controller/Status.js @ 500:ad7f574b382a
Fixed some js related issues (unused vars, arrays, etc.) and code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 06 Nov 2014 11:20:47 +0100 |
parents | 8b4ec61c5752 |
children | 6ad453afbc31 |
line wrap: on
line diff
--- a/app/controller/Status.js Thu Nov 06 11:12:21 2014 +0100 +++ b/app/controller/Status.js Thu Nov 06 11:20:47 2014 +0100 @@ -3,7 +3,7 @@ * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out - * the documentation coming with IMIS-Labordaten-Application for details. + * the documentation coming with IMIS-Labordaten-Application for details. */ Ext.define('Lada.controller.Status', { @@ -50,7 +50,7 @@ var zusatzwert = Ext.create('Lada.model.Status'); zusatzwert.set('probeId', button.probeId); zusatzwert.set('messungsId', button.parentId); - var view = Ext.widget('statuscreate', { + Ext.widget('statuscreate', { model: zusatzwert }); }, @@ -61,18 +61,18 @@ record.getAuthInfo(this.initEditWindow, messung.get('probeId')); }, - initEditWindow: function(record, readonly, owner) { + initEditWindow: function(record, readonly) { var view = Ext.widget('statuscreate', { model: record }); - var ignore = Array(); + var ignore = []; if (readonly) { var form = view.down('form'); form.setReadOnly(true, ignore); } }, - createSuccess: function(form, record, operation) { + createSuccess: function(form) { // Reload store var store = this.getStatusStore(); store.reload(); @@ -80,7 +80,7 @@ win.close(); }, - editSuccess: function(form, record, operation) { + editSuccess: function(form) { // Reload store var store = this.getStatusStore(); store.reload();