Created
July 11, 2013 03:00
-
-
Save jaseflow/5972204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.pkg-selection').fastClick(function() { | |
| var optionsHeight = $('#options').outerHeight(); | |
| // Load appropriate option list | |
| var content = $(this).attr('id'); | |
| $('#options').load('/components/packagesOptions/' + content + '.html', function(response, status, xhr) { | |
| if (status == "error") { | |
| var msg = "Sorry but there was an error: "; | |
| $('#error').html(msg + xhr.status + " " + xhr.statusText); | |
| }; | |
| }); | |
| // Shift canvas to the right to display option list | |
| $('.canvas__wrap').addClass('canvas__wrap--second'); | |
| // Set height of the parent canvas by finding the height of the options | |
| $('.canvas').css('height', optionsHeight); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment