фикс: установка модкода
This commit is contained in:
parent
5f0959b521
commit
fdc4935d8c
@ -78,22 +78,16 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro build_getter_js(param_group, widget) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
{% macro build_getter_js(param_group, widget) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
||||||
elif widget.widget == 'checkbox' or widget.widget == 'number' or widget.widget == 'select' or widget.widget == 'ip-address' %}this.param{{ param_group | title }}.{{ widget.name }}{%
|
elif widget.widget in ['checkbox', 'number', 'select', 'ip-address', 'modulation-modcod', 'modulation-speed'] %}this.param{{ param_group | title }}.{{ widget.name }}{%
|
||||||
elif widget.widget == 'modulation-modcod' %}this.param{{ param_group | title }}.{{ widget.name }}Modulation{%
|
|
||||||
elif widget.widget == 'modulation-speed' %}this.param{{ param_group | title }}.{{ widget.name }}Speed{%
|
|
||||||
elif widget.widget == 'number-int' %}parseInt(this.param{{ param_group | title }}.{{ widget.name }}.replace(/[^0-9]/g, '')){%
|
elif widget.widget == 'number-int' %}parseInt(this.param{{ param_group | title }}.{{ widget.name }}.replace(/[^0-9]/g, '')){%
|
||||||
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
||||||
|
|
||||||
{% macro build_setter_js(param_group, widget, expr) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
{% macro build_setter_js(param_group, widget, expr) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
||||||
elif widget.widget in ['checkbox', 'number', 'select', 'ip-address'] %}this.param{{ param_group | title }}.{{ widget.name }} = {{ expr }}{%
|
elif widget.widget in ['checkbox', 'number', 'select', 'ip-address', 'modulation-modcod', 'modulation-speed'] %}this.param{{ param_group | title }}.{{ widget.name }} = {{ expr }}{%
|
||||||
elif widget.widget == 'modulation-modcod' %}this.param{{ param_group | title }}.{{ widget.name }}Modulation = {{ expr }}{%
|
|
||||||
elif widget.widget == 'modulation-speed' %}this.param{{ param_group | title }}.{{ widget.name }}Speed = {{ expr }}{%
|
|
||||||
elif widget.widget == 'number-int' %}this.param{{ param_group | title }}.{{ widget.name }} = this.inputFormatInt({{ expr }}, {{ js_build_number_int_validator(widget) }}){%
|
elif widget.widget == 'number-int' %}this.param{{ param_group | title }}.{{ widget.name }} = this.inputFormatInt({{ expr }}, {{ js_build_number_int_validator(widget) }}){%
|
||||||
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
||||||
|
|
||||||
{% macro build_setter(param_group, widget, expr) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
{% macro build_setter(param_group, widget, expr) %}{% if widget.widget in ['flex-container', 'settings-container', 'h2', 'h3', 'submit', 'watch', 'watch-expr'] %}null{%
|
||||||
elif widget.widget in ['checkbox', 'number', 'select', 'ip-address'] %}param{{ param_group | title }}.{{ widget.name }} = {{ expr }}{%
|
elif widget.widget in ['checkbox', 'number', 'select', 'ip-address', 'modulation-modcod', 'modulation-speed'] %}param{{ param_group | title }}.{{ widget.name }} = {{ expr }}{%
|
||||||
elif widget.widget == 'modulation-modcod' %}param{{ param_group | title }}.{{ widget.name }}Modulation = {{ expr }}{%
|
|
||||||
elif widget.widget == 'modulation-speed' %}param{{ param_group | title }}.{{ widget.name }}Speed = {{ expr }}{%
|
|
||||||
elif widget.widget == 'number-int' %}param{{ param_group | title }}.{{ widget.name }} = ({{ expr }}).toString(){%
|
elif widget.widget == 'number-int' %}param{{ param_group | title }}.{{ widget.name }} = ({{ expr }}).toString(){%
|
||||||
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
else %}<p>Widget '{{ widget.widget }}' not defined!</p><p>{{ widget }}</p>{% endif %}{% endmacro %}
|
||||||
|
@ -782,12 +782,12 @@
|
|||||||
"dvbServicePacketPeriod": this.paramRxtx.dvbServicePacketPeriod,
|
"dvbServicePacketPeriod": this.paramRxtx.dvbServicePacketPeriod,
|
||||||
"dvbIsAcm": this.paramRxtx.dvbIsAcm,
|
"dvbIsAcm": this.paramRxtx.dvbIsAcm,
|
||||||
"txFrameSizeNormal": this.paramRxtx.txFrameSizeNormal,
|
"txFrameSizeNormal": this.paramRxtx.txFrameSizeNormal,
|
||||||
"dvbCcmModulation": this.paramRxtx.dvbCcmModulationModulation,
|
"dvbCcmModulation": this.paramRxtx.dvbCcmModulation,
|
||||||
"dvbCcmSpeed": this.paramRxtx.dvbCcmSpeedSpeed,
|
"dvbCcmSpeed": this.paramRxtx.dvbCcmSpeed,
|
||||||
"dvbAcmMinModulation": this.paramRxtx.dvbAcmMinModulationModulation,
|
"dvbAcmMinModulation": this.paramRxtx.dvbAcmMinModulation,
|
||||||
"dvbAcmMinSpeed": this.paramRxtx.dvbAcmMinSpeedSpeed,
|
"dvbAcmMinSpeed": this.paramRxtx.dvbAcmMinSpeed,
|
||||||
"dvbAcmMaxModulation": this.paramRxtx.dvbAcmMaxModulationModulation,
|
"dvbAcmMaxModulation": this.paramRxtx.dvbAcmMaxModulation,
|
||||||
"dvbAcmMaxSpeed": this.paramRxtx.dvbAcmMaxSpeedSpeed,
|
"dvbAcmMaxSpeed": this.paramRxtx.dvbAcmMaxSpeed,
|
||||||
"dvbSnrReserve": this.paramRxtx.dvbSnrReserve,
|
"dvbSnrReserve": this.paramRxtx.dvbSnrReserve,
|
||||||
"aupcEn": this.paramRxtx.aupcEn,
|
"aupcEn": this.paramRxtx.aupcEn,
|
||||||
"aupcMinAttenuation": this.paramRxtx.aupcMinAttenuation,
|
"aupcMinAttenuation": this.paramRxtx.aupcMinAttenuation,
|
||||||
@ -893,12 +893,12 @@
|
|||||||
this.paramRxtx.dvbServicePacketPeriod = vals["settings"]["dvbServicePacketPeriod"]
|
this.paramRxtx.dvbServicePacketPeriod = vals["settings"]["dvbServicePacketPeriod"]
|
||||||
this.paramRxtx.dvbIsAcm = vals["settings"]["dvbIsAcm"]
|
this.paramRxtx.dvbIsAcm = vals["settings"]["dvbIsAcm"]
|
||||||
this.paramRxtx.txFrameSizeNormal = vals["settings"]["txFrameSizeNormal"]
|
this.paramRxtx.txFrameSizeNormal = vals["settings"]["txFrameSizeNormal"]
|
||||||
this.paramRxtx.dvbCcmModulationModulation = vals["settings"]["dvbCcmModulation"]
|
this.paramRxtx.dvbCcmModulation = vals["settings"]["dvbCcmModulation"]
|
||||||
this.paramRxtx.dvbCcmSpeedSpeed = vals["settings"]["dvbCcmSpeed"]
|
this.paramRxtx.dvbCcmSpeed = vals["settings"]["dvbCcmSpeed"]
|
||||||
this.paramRxtx.dvbAcmMinModulationModulation = vals["settings"]["dvbAcmMinModulation"]
|
this.paramRxtx.dvbAcmMinModulation = vals["settings"]["dvbAcmMinModulation"]
|
||||||
this.paramRxtx.dvbAcmMinSpeedSpeed = vals["settings"]["dvbAcmMinSpeed"]
|
this.paramRxtx.dvbAcmMinSpeed = vals["settings"]["dvbAcmMinSpeed"]
|
||||||
this.paramRxtx.dvbAcmMaxModulationModulation = vals["settings"]["dvbAcmMaxModulation"]
|
this.paramRxtx.dvbAcmMaxModulation = vals["settings"]["dvbAcmMaxModulation"]
|
||||||
this.paramRxtx.dvbAcmMaxSpeedSpeed = vals["settings"]["dvbAcmMaxSpeed"]
|
this.paramRxtx.dvbAcmMaxSpeed = vals["settings"]["dvbAcmMaxSpeed"]
|
||||||
this.paramRxtx.dvbSnrReserve = vals["settings"]["dvbSnrReserve"]
|
this.paramRxtx.dvbSnrReserve = vals["settings"]["dvbSnrReserve"]
|
||||||
this.paramRxtx.aupcEn = vals["settings"]["aupcEn"]
|
this.paramRxtx.aupcEn = vals["settings"]["aupcEn"]
|
||||||
this.paramRxtx.aupcMinAttenuation = vals["settings"]["aupcMinAttenuation"]
|
this.paramRxtx.aupcMinAttenuation = vals["settings"]["aupcMinAttenuation"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user