# HG changeset patch # User Nathan Phillip Brink # Date 2011-07-30 12:42:15 # Node ID c0d30a82a71f0eec1ffbbc9ad67344486848dcc7 # Parent 8a1d9e0c8ff2c8a49e985340d5c1c7211c3c9324 Don't scroll to the top of the document on clicking ``Detailed Instructions...'' diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -1,4 +1,4 @@ -/* +/* -*- tab-width: 4; -*- * Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink * * This file is part of SlatePermutate. @@ -740,9 +740,10 @@ jQuery(document).ready(function() { // Show/Hide instructions //-------------------------------------------------- jQuery('#schoolInstructionsBox').hide(); - jQuery('#showInstructions').click( function() { + jQuery('#showInstructions').click( function(e) { jQuery('#showInstructions').hide(); jQuery('#schoolInstructionsBox').slideToggle(); + e.preventDefault(); });