SimpleModal onOpen/onClose
Hey Guys,
At the moment, i have got it working so that it opens and closes without any fadeIn or fadeOut dialogue elements.
This is the current code that I have working without the fadeIn or fadeOut.
- jQuery(function ($) {
- // Load dialog on click
- $('.basic').click(function (e) {
-
- var id = $(this).attr("href");
- $.get('extra.php', {
- fixture: id
- }, function (data) {
- $('#content-one').html(data).modal({
- overlayClose: true,
- opacity: 40
- });
-
- });
- return false;
- });
- });
The SimpleModal provides a snippet of the onOpen and onClose effects. Ideally, i would like to implement this below code into the above code.
- $("#content-one").modal({onOpen: function (dialog) {
- dialog.overlay.fadeIn('slow', function () {
- });
- }});
Cheers,
tebrown