Created
April 9, 2014 03:14
-
-
Save ACEfanatic02/10222890 to your computer and use it in GitHub Desktop.
Loading dialog content via ajax.
This file contains 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
$(document).ready(function() { | |
var schedule_dialog = $("#appt-dialog") | |
schedule_dialog.dialog({ | |
autoOpen: false, | |
modal: true, | |
minWidth: 600, | |
minHeight: 200 | |
}); | |
$(".schedule-block").click(function (e) { | |
schedule_dialog.load("appt-dialog.inc.html", function() { | |
schedule_dialog.dialog("open"); | |
$("#appt-btn-cancel").click(function (e) { | |
e.preventDefault(); | |
schedule_dialog.dialog("close"); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment