1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed bug in pulse / performance display when no local preference set

This commit is contained in:
Krateng 2020-09-25 04:09:31 +02:00
parent 5e93eb15f4
commit f0cbe33f6a
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE
3 changed files with 4 additions and 10 deletions

View File

@ -103,7 +103,7 @@
<span
class="stat_module_pulse pulse_{{ r.identifier }}"
style="{{ 'display:none;' if initialrange==r.identifier else '' }}"
style="{{ 'display:none;' if initialrange!=r.identifier else '' }}"
>
{% with limitkeys={"since":r.firstrange},delimitkeys={'step':r.identifier,'trail':1} %}
@ -136,7 +136,7 @@
<span
class="stat_module_pulse pulse_{{ r.identifier }}"
style="{{ 'display:none;' if initialrange==r.identifier else '' }}"
style="{{ 'display:none;' if initialrange!=r.identifier else '' }}"
>
{% with filterkeys={'artist':credited},limitkeys={"since":r.firstrange},delimitkeys={'step':r.identifier,'trail':1} %}

View File

@ -87,7 +87,7 @@
<span
class="stat_module_pulse pulse_{{ r.identifier }}"
style="{{ 'display:none;' if initialrange==r.identifier else '' }}"
style="{{ 'display:none;' if initialrange!=r.identifier else '' }}"
>
{% with limitkeys={"since":r.firstrange},delimitkeys={'step':r.identifier,'trail':1} %}
@ -117,7 +117,7 @@
<span
class="stat_module_pulse pulse_{{ r.identifier }}"
style="{{ 'display:none;' if initialrange==r.identifier else '' }}"
style="{{ 'display:none;' if initialrange!=r.identifier else '' }}"
>
{% with limitkeys={"since":r.firstrange},delimitkeys={'step':r.identifier,'trail':1} %}

View File

@ -52,12 +52,6 @@ document.addEventListener('DOMContentLoaded',function() {
if (val != null) {
showRange(type,val);
}
else {
var val = neo.getCookie("rangeselect_" + type);
if (val != undefined) {
showRangeManual(type,val); //sets local storage
}
}
}