mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:57:33 -05:00 
			
		
		
		
	Hide upgrade modal on /account_mgmt
This commit is contained in:
		
							parent
							
								
									733890ec3f
								
							
						
					
					
						commit
						ffaea75c01
					
				@ -176,6 +176,12 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script type="text/javascript">
 | 
					<script type="text/javascript">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// show plan popupl when clicking 'Upgrade' in navbar
 | 
				
			||||||
 | 
						function showUpgradeModal() {
 | 
				
			||||||
 | 
							showChangePlan();
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	function showChangePlan() {
 | 
						function showChangePlan() {
 | 
				
			||||||
		$('#changePlanModel').modal('show');
 | 
							$('#changePlanModel').modal('show');
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
@ -369,7 +369,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
@section('body')
 | 
					@section('body')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@if ( ! Request::is('settings/account_management'))
 | 
				
			||||||
  @include('partials.upgrade_modal')
 | 
					  @include('partials.upgrade_modal')
 | 
				
			||||||
 | 
					@endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="height:60px;">
 | 
					<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="height:60px;">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -177,12 +177,8 @@
 | 
				
			|||||||
<script type="text/javascript">
 | 
					<script type="text/javascript">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  function showUpgradeModal() {
 | 
					  function showUpgradeModal() {
 | 
				
			||||||
    @if (Request::is('settings/account_management'))
 | 
					 | 
				
			||||||
      showChangePlan();
 | 
					 | 
				
			||||||
    @else
 | 
					 | 
				
			||||||
    $(window).scrollTop(0);
 | 
					    $(window).scrollTop(0);
 | 
				
			||||||
    $('#upgrade-modal').fadeIn();
 | 
					    $('#upgrade-modal').fadeIn();
 | 
				
			||||||
    @endif
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  function hideUpgradeModal() {
 | 
					  function hideUpgradeModal() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user