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
				
			
		
							
								
								
									
										15
									
								
								lsp/main.js
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								lsp/main.js
									
										
									
									
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					@ -879,7 +883,7 @@
 | 
				
			||||||
                           {
 | 
					                           {
 | 
				
			||||||
                              var text = $(this).val();
 | 
					                              var text = $(this).val();
 | 
				
			||||||
                              
 | 
					                              
 | 
				
			||||||
															/*
 | 
					                              /*
 | 
				
			||||||
                              if(text.charAt(0) == '/' || text.substr(0, 7) == 'push://')
 | 
					                              if(text.charAt(0) == '/' || text.substr(0, 7) == 'push://')
 | 
				
			||||||
                              {
 | 
					                              {
 | 
				
			||||||
                                 $('#stream-edit-preset').val('');
 | 
					                                 $('#stream-edit-preset').val('');
 | 
				
			||||||
| 
						 | 
					@ -889,7 +893,7 @@
 | 
				
			||||||
                                 $('#stream-edit-preset').show();
 | 
					                                 $('#stream-edit-preset').show();
 | 
				
			||||||
                                 $('#stream-edit-preset-label').show();
 | 
					                                 $('#stream-edit-preset-label').show();
 | 
				
			||||||
                              }
 | 
					                              }
 | 
				
			||||||
															*/
 | 
					                              */
 | 
				
			||||||
                              
 | 
					                              
 | 
				
			||||||
                              if(text.charAt(0) == '/')
 | 
					                              if(text.charAt(0) == '/')
 | 
				
			||||||
                              {
 | 
					                              {
 | 
				
			||||||
| 
						 | 
					@ -903,7 +907,7 @@
 | 
				
			||||||
                           })
 | 
					                           })
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                     )
 | 
					                     )
 | 
				
			||||||
										 /*.append(
 | 
					                     /*.append(
 | 
				
			||||||
                        $('<label>').attr('id', 'stream-edit-preset-label').attr('for', 'stream-edit-preset').text('preset').append(
 | 
					                        $('<label>').attr('id', 'stream-edit-preset-label').attr('for', 'stream-edit-preset').text('preset').append(
 | 
				
			||||||
                           $('<input>').attr('type', 'text').attr('placeholder', 'PRESET').attr('id', 'stream-edit-preset').attr('value', sdata.preset.cmd)
 | 
					                           $('<input>').attr('type', 'text').attr('placeholder', 'PRESET').attr('id', 'stream-edit-preset').attr('value', sdata.preset.cmd)
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
| 
						 | 
					@ -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