LSP: disabled limits tab if the server is not LTS
This commit is contained in:
		
							parent
							
								
									92ed92ed70
								
							
						
					
					
						commit
						2282ec2dd8
					
				
					 1 changed files with 13 additions and 4 deletions
				
			
		| 
						 | 
					@ -62,6 +62,10 @@
 | 
				
			||||||
                  // show correct tab
 | 
					                  // show correct tab
 | 
				
			||||||
                  showTab($(this).text());
 | 
					                  showTab($(this).text());
 | 
				
			||||||
               });
 | 
					               });
 | 
				
			||||||
 | 
					               
 | 
				
			||||||
 | 
					               if (($(this).text() == "limits") && (settings.settings.LTS != 1)) {
 | 
				
			||||||
 | 
					                  $(this).remove();
 | 
				
			||||||
 | 
					               }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            // show login 'tab' and hide menu
 | 
					            // show login 'tab' and hide menu
 | 
				
			||||||
| 
						 | 
					@ -1052,6 +1056,11 @@
 | 
				
			||||||
                  break;
 | 
					                  break;
 | 
				
			||||||
                  
 | 
					                  
 | 
				
			||||||
               case 'limits':
 | 
					               case 'limits':
 | 
				
			||||||
 | 
					                  if (settings.settings.LTS != 1) {
 | 
				
			||||||
 | 
					                    $('#page').html('Limits are not supported in your version. Buy the LTS! :)');
 | 
				
			||||||
 | 
					                    return;
 | 
				
			||||||
 | 
					                  } 
 | 
				
			||||||
 | 
					               
 | 
				
			||||||
                  $table = $('<table>');
 | 
					                  $table = $('<table>');
 | 
				
			||||||
                  $table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>");
 | 
					                  $table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>");
 | 
				
			||||||
                  $tbody = $('<tbody>');
 | 
					                  $tbody = $('<tbody>');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue