Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created September 26, 2012 01:01
Show Gist options
  • Save lazypower/3785375 to your computer and use it in GitHub Desktop.
Save lazypower/3785375 to your computer and use it in GitHub Desktop.
# Methods bound to Step1 dialog
stepone_submit = ->
$("#stepone").dialog "destroy"
$("#steptwo").dialog
title: "Refine Search"
resizable: false
height: 500
width: 400
modal: true
closeOnEscape: false
why_click = ->
$("#stepone").dialog "destroy"
$("#stepwhy").dialog
title: "Membership Benefits"
resizable: false
height: 250
width: 410
modal: true
closeOnEscape: false
# Method bound to the Step2 Dialog
steptwo_submit = ->
$("#steptwo").dialog "destroy"
$("#stepthree").dialog
title: "Advance Career with Higher Education"
resizable: false
height: 600
width: 620
modal: true
closeOnEscape: false
# Methods bound to the WHY dialog
why_nothanks_click = ->
# do something with the short-form data
$("#stepwhy").dialog "destroy"
$("html").css "overflow", "auto"
why_register_click = ->
# do something intelligent
$("#stepwhy").dialog "destroy"
$("#steptwo").dialog
title: "Refine Search"
resizable: false
height: 900
width: 410
modal: true
closeOnEscape: false
$(document).ready ->
step_one = $("#stepone").dialog(
title: "Registration Info"
resizable: false
height: 280
width: 360
modal: true
closeOnEscape: false
)
html = $("html")
html.css "overflow", "hidden"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment