Mercurial > lada > lada-client
comparison app/view/window/Messprogramm.js @ 760:2e7e1a8bf79f
Added a Window and Buttons to generate Proben from a Messprogramm
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 08 May 2015 11:38:00 +0200 |
parents | b7484c7da2d4 |
children | 1f3837b513d9 |
comparison
equal
deleted
inserted
replaced
759:b7484c7da2d4 | 760:2e7e1a8bf79f |
---|---|
36 else { | 36 else { |
37 this.title = i18n.getMsg('messprogramm.window.edit.title'); | 37 this.title = i18n.getMsg('messprogramm.window.edit.title'); |
38 } | 38 } |
39 | 39 |
40 this.buttons = [{ | 40 this.buttons = [{ |
41 text: i18n.getMsg('generateproben'), | |
42 scope: this, | |
43 disabled: this.record? false : true, //disable button if no record is set. | |
44 handler: function() { | |
45 var winname = 'Lada.view.window.GenProbenFromMessprogramm'; | |
46 var win = Ext.create(winname, { | |
47 record: this.record | |
48 }); | |
49 win.show(); | |
50 win.initData(); | |
51 } | |
52 }, | |
53 '->', | |
54 { | |
41 text: i18n.getMsg('close'), | 55 text: i18n.getMsg('close'), |
42 scope: this, | 56 scope: this, |
43 handler: this.close | 57 handler: this.close |
44 }]; | 58 }]; |
45 this.width = 700; | 59 this.width = 700; |