Commit e0801ba50c4fde81299ba90c80f87a30b201c15a
- Diff rendering mode:
- inline
- side by side
dss-setup-interface/dSS/SystemPanel.js
(0 / 15)
|   | |||
| 56 | 56 | width: 225, | |
| 57 | 57 | minSize: 175, | |
| 58 | 58 | 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 | ], | ||
| 74 | 59 | items: [ this.listView ] | |
| 75 | 60 | } | |
| 76 | 61 | ); |
dss-setup-interface/dSS/grid/ModulatorPanel.js
(23 / 1)
|   | |||
| 161 | 161 | ); | |
| 162 | 162 | }, | |
| 163 | 163 | 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 | { | ||
| 165 | 180 | iconCls: 'copyToClipboardToolbarIcon', | |
| 166 | 181 | handler: this.showCopyWindow, | |
| 167 | 182 | scope: this | |
| … | … | ||
| 558 | 558 | Ext.MessageBox.alert(_("Error"), _("Could send remove inactive meters command to dSS")); | |
| 559 | 559 | } | |
| 560 | 560 | }); | |
| 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(); | ||
| 561 | 568 | } | |
| 562 | 569 | }); | |
| 563 | 570 |

