mirror of
				https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
				synced 2023-10-10 11:37:40 +00:00 
			
		
		
		
	Fix display of experimental fw
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user