Hide upgrade modal on /account_mgmt

This commit is contained in:
Hillel Coren 2016-10-18 18:01:33 +03:00
parent 733890ec3f
commit ffaea75c01
3 changed files with 11 additions and 7 deletions

View File

@ -176,6 +176,12 @@
</div>
<script type="text/javascript">
// show plan popupl when clicking 'Upgrade' in navbar
function showUpgradeModal() {
showChangePlan();
}
function showChangePlan() {
$('#changePlanModel').modal('show');
}

View File

@ -369,7 +369,9 @@
@section('body')
@include('partials.upgrade_modal')
@if ( ! Request::is('settings/account_management'))
@include('partials.upgrade_modal')
@endif
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="height:60px;">

View File

@ -177,12 +177,8 @@
<script type="text/javascript">
function showUpgradeModal() {
@if (Request::is('settings/account_management'))
showChangePlan();
@else
$(window).scrollTop(0);
$('#upgrade-modal').fadeIn();
@endif
}
function hideUpgradeModal() {