aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/posts/_form.js.erb
blob: 1d65448f8f6c5e1868c735b4d3f18845c25f794e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
  $(document).ready(function(){
    $('#toggle_advanced_options').click(function(e){
      e.preventDefault();

      $('#more_options').animate({opacity: 'toggle', height: 'toggle'}, 250);

      $('html,body').animate({
        scrollTop: $('#toggle_advanced_options').parent().offset().top
      }, 250);
    });
  });
</script>