Move setting of the default icon before the actual one
This commit is contained in:
parent
7cb83755e6
commit
9bf8731a59
1 changed files with 4 additions and 2 deletions
|
@ -31,13 +31,15 @@ define(['globalize', 'connectionManager', 'require', 'loading', 'apphost', 'dom'
|
||||||
function RecordingButton(options) {
|
function RecordingButton(options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
|
||||||
|
var button = options.button;
|
||||||
|
|
||||||
|
setButtonIcon(button, 'fiber_manual_record');
|
||||||
|
|
||||||
if (options.item) {
|
if (options.item) {
|
||||||
this.refreshItem(options.item);
|
this.refreshItem(options.item);
|
||||||
} else if (options.itemId && options.serverId) {
|
} else if (options.itemId && options.serverId) {
|
||||||
this.refresh(options.itemId, options.serverId);
|
this.refresh(options.itemId, options.serverId);
|
||||||
}
|
}
|
||||||
var button = options.button;
|
|
||||||
setButtonIcon(button, 'fiber_manual_record');
|
|
||||||
|
|
||||||
var clickFn = onRecordingButtonClick.bind(this);
|
var clickFn = onRecordingButtonClick.bind(this);
|
||||||
this.clickFn = clickFn;
|
this.clickFn = clickFn;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue