update prompt dialog
This commit is contained in:
parent
1bc42f10d6
commit
719ed8d8bd
60 changed files with 285 additions and 206 deletions
|
@ -17,7 +17,12 @@
|
|||
for (var i = 0, length = chkIndicators.length; i < length; i++) {
|
||||
|
||||
var type = chkIndicators[i].getAttribute('data-type');
|
||||
chkIndicators[i].checked = userSettings.get('guide-indicator-' + type) == 'true';
|
||||
|
||||
if (chkIndicators[i].getAttribute('data-default') == 'true') {
|
||||
chkIndicators[i].checked = userSettings.get('guide-indicator-' + type) != 'false';
|
||||
} else {
|
||||
chkIndicators[i].checked = userSettings.get('guide-indicator-' + type) == 'true';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span>${HDPrograms}</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" class="chkIndicator" data-type="live" />
|
||||
<input type="checkbox" is="emby-checkbox" class="chkIndicator" data-type="live" data-default="true" />
|
||||
<span>${LiveBroadcasts}</span>
|
||||
</label>
|
||||
<label>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<span>${NewEpisodes}</span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" is="emby-checkbox" class="chkIndicator" data-type="premiere" />
|
||||
<input type="checkbox" is="emby-checkbox" class="chkIndicator" data-type="premiere" data-default="true" />
|
||||
<span>${Premieres}</span>
|
||||
</label>
|
||||
<label>
|
||||
|
|
|
@ -432,8 +432,8 @@
|
|||
|
||||
var options = {
|
||||
showHdIcon: allowIndicators && userSettings.get('guide-indicator-hd') == 'true',
|
||||
showLiveIndicator: allowIndicators && userSettings.get('guide-indicator-live') == 'true',
|
||||
showPremiereIndicator: allowIndicators && userSettings.get('guide-indicator-premiere') == 'true',
|
||||
showLiveIndicator: allowIndicators && userSettings.get('guide-indicator-live') != 'false',
|
||||
showPremiereIndicator: allowIndicators && userSettings.get('guide-indicator-premiere') != 'false',
|
||||
showNewIndicator: allowIndicators && userSettings.get('guide-indicator-new') == 'true',
|
||||
showRepeatIndicator: allowIndicators && userSettings.get('guide-indicator-repeat') == 'true'
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue