mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Change colour of grouped recently added note on checkbox toggle
This commit is contained in:
parent
1920c9b7e3
commit
23fa64d289
1 changed files with 12 additions and 2 deletions
|
@ -749,8 +749,14 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="notify_recently_added_grandparent" id="notify_recently_added_grandparent" value="1" ${config['notify_recently_added_grandparent']}> Group notifications for recently added TV Shows or Music
|
<input type="checkbox" name="notify_recently_added_grandparent" id="notify_recently_added_grandparent" value="1" ${config['notify_recently_added_grandparent']}> Group notifications for recently added TV Shows or Music
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">Enable to only get one TV Show or Artist notification for a batch of recently added Episodes or Tracks. Movies are unaffected.<br />
|
<p class="help-block">
|
||||||
Note: No Season/Episode or Album/Track metadata will be available.</p>
|
Enable to only get one TV Show or Artist notification for a batch of recently added Episodes or Tracks. Movies are unaffected.<br />
|
||||||
|
% if config['notify_recently_added_grandparent'] == 'Checked':
|
||||||
|
<span id="notify_recently_added_grandparent_note" style="color: #eb8600;">Note: No Season/Episode or Album/Track metadata will be available.</span>
|
||||||
|
% else:
|
||||||
|
<span id="notify_recently_added_grandparent_note">Note: No Season/Episode or Album/Track metadata will be available.</span>
|
||||||
|
% endif
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="notify_recently_added_delay">Notification Delay</label>
|
<label for="notify_recently_added_delay">Notification Delay</label>
|
||||||
|
@ -2055,6 +2061,10 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
getSchedulerTable();
|
getSchedulerTable();
|
||||||
|
|
||||||
|
$("#notify_recently_added_grandparent").change(function () {
|
||||||
|
var c = this.checked ? '#eb8600' : '#737373';
|
||||||
|
$('#notify_recently_added_grandparent_note').css('color', c);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</%def>
|
</%def>
|
Loading…
Add table
Add a link
Reference in a new issue