Commit e0801ba50c4fde81299ba90c80f87a30b201c15a

  • avatar
  • Sergey 'Jin' Bostandzhyan <jin @deve…per.digitalstrom.org>
  • Fri Jul 09 15:48:11 CEST 2010
Moved reload menu from system to dSM overview

Previously the menu was added to the system properties tab so that the
dSM overview could get reloaded. Since we moved the overview to an own
screen now, I also moved the menu accordingly.
dss-setup-interface/dSS/SystemPanel.js
(0 / 15)
  
5656 width: 225,
5757 minSize: 175,
5858 maxSize: 400,
59 tbar : [
60 '->',
61 {
62 cls: 'zonePanelMenu',
63 menu: [{
64 text : _("Reload"),
65 handler: this.reload,
66 scope: this
67 },{
68 text: _("Rescan"),
69 handler: this.rescan,
70 scope: this
71 }]
72 }
73 ],
7459 items: [ this.listView ]
7560 }
7661 );
dss-setup-interface/dSS/grid/ModulatorPanel.js
(23 / 1)
  
161161 );
162162 },
163163 buildTopToolbar: function() {
164 return ['->', {
164 return [
165 {
166 cls: 'zonePanelMenu',
167 menu: [{
168 text: _("Reload"),
169 handler: this.reload,
170 scope: this
171 },
172 {
173 text: _("Rescan"),
174 handler: this.rescan,
175 scope: this
176 }]
177 },
178 '->',
179 {
165180 iconCls: 'copyToClipboardToolbarIcon',
166181 handler: this.showCopyWindow,
167182 scope: this
558558 Ext.MessageBox.alert(_("Error"), _("Could send remove inactive meters command to dSS"));
559559 }
560560 });
561 },
562 rescan: function() {
563 this.ownerCt.ownerCt.zoneBrowser.rescan();
564 },
565 reload: function() {
566 console.log(this.ownerCt);
567 this.ownerCt.ownerCt.zoneBrowser.loadData();
561568 }
562569});
563570