added refreshbutton
[L-seed.git] / web / php / page / previewplant.pg
1 {
2         id: 'ContentPanel_previewplant'
3         ,closable: true
4         ,style: 'padding: 5px;'
5         ,title: 'Pflanze anschauen'
6         ,tbar: [{
7                 id: 'previewReload'
8                 ,text: 'Reload'
9                 ,icon: 'img/icons/arrow_refresh.png'
10                 ,cls: 'x-btn-text-icon'
11                 ,handler: function(){
12                         var cmp = Ext.getCmp('ContentPanel_previewplant');
13                         if (cmp) {
14                                 communication.closeTab('previewplant');
15                                 editor.Preview({data:{ID:cmp.plantid}});
16                         }
17                 }
18         }]
19 }