mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Fix display of experimental fw
This commit is contained in:
parent
37a381432b
commit
e3611fb82b
@ -321,7 +321,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
var cls = '';
|
var cls = '';
|
||||||
var style = '';
|
var style = '';
|
||||||
if (fw.installed) cls = ' class="warning"';
|
if (fw.installed) cls = ' class="warning"';
|
||||||
if (fw.experimental) { cls = ' class="error"'; style = 'visibility: collapse;' }
|
if (fw.experimental) { cls = ' class="error"'; style = 'display: none!important;' }
|
||||||
if (fw.latest) cls = ' class="positive"';
|
if (fw.latest) cls = ' class="positive"';
|
||||||
$("#firmware-info tbody").append($('<tr' + cls + ' style="' + style + '">').attr('data-experimental', fw.experimental).append(
|
$("#firmware-info tbody").append($('<tr' + cls + ' style="' + style + '">').attr('data-experimental', fw.experimental).append(
|
||||||
$('<td>').append($('<a>', {text: fw.version, title: i18next.t('open_release_info'), href: fw.info_url, target: "_blank"})),
|
$('<td>').append($('<a>', {text: fw.version, title: i18next.t('open_release_info'), href: fw.info_url, target: "_blank"})),
|
||||||
@ -354,7 +354,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
}
|
}
|
||||||
|
|
||||||
function show_experimental_firmware(show) {
|
function show_experimental_firmware(show) {
|
||||||
$('tr[data-experimental="true"]').css('visibility', show ? '' : 'collapse');
|
$('tr[data-experimental="true"]').css('cssText', show ? '' : 'display:none !important');
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_system_info() {
|
function get_system_info() {
|
||||||
|
@ -78,6 +78,7 @@ proc process {} {
|
|||||||
global env
|
global env
|
||||||
if { [info exists env(QUERY_STRING)] } {
|
if { [info exists env(QUERY_STRING)] } {
|
||||||
set query $env(QUERY_STRING)
|
set query $env(QUERY_STRING)
|
||||||
|
set path ""
|
||||||
set sid ""
|
set sid ""
|
||||||
set pairs [split $query "&"]
|
set pairs [split $query "&"]
|
||||||
foreach pair $pairs {
|
foreach pair $pairs {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user