Browse Source

fix create database button

pull/13/head
Aaron Parecki 7 years ago
parent
commit
ed403e608d
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      compass/resources/views/dashboard.blade.php

+ 10
- 2
compass/resources/views/dashboard.blade.php View File

@ -12,7 +12,7 @@
<li class="db"><a href="/map/{{ $database->name }}">{{ $database->name }}</a></li>
@endforeach
<li>
<a href="javascript:$('.databases .create').removeClass('hidden');$('.create-link').addClass('hidden');" class="pure-button create-link {{ session('create-error') ? 'hidden' : '' }}">create database</a>
<a href="#" class="pure-button create-link {{ session('create-error') ? 'hidden' : '' }}">create database</a>
@if(session('create-error'))
<div class="error">{{ session('create-error') }}</div>
@endif
@ -28,5 +28,13 @@
</ul>
</div>
<script>
$(function(){
$(".create-link").click(function(){
$('.databases .create').removeClass('hidden');
$('.create-link').addClass('hidden');
return false;
});
});
</script>
@endsection

Loading…
Cancel
Save