1
0
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:
Jan Schneider 2020-02-25 12:02:46 +01:00
parent 37a381432b
commit e3611fb82b
2 changed files with 3 additions and 2 deletions

View File

@ -321,7 +321,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var cls = '';
var style = '';
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"';
$("#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"})),
@ -354,7 +354,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
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() {

View File

@ -78,6 +78,7 @@ proc process {} {
global env
if { [info exists env(QUERY_STRING)] } {
set query $env(QUERY_STRING)
set path ""
set sid ""
set pairs [split $query "&"]
foreach pair $pairs {