SimpleModal onOpen/onClose

SimpleModal onOpen/onClose

Hey Guys,

I'm currently using the SimpleModal jquery plugin from:  http://www.ericmmartin.com/projects/simplemodal/

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. 

  1. jQuery(function ($) {
  2. // Load dialog on click
  3. $('.basic').click(function (e) {
  4. var id = $(this).attr("href");
  5. $.get('extra.php', {
  6. fixture: id
  7. }, function (data) {
  8. $('#content-one').html(data).modal({
  9. overlayClose: true,
  10. opacity: 40
  11. });
  12. });
  13. return false;
  14. });
  15. });
The SimpleModal provides a snippet of the onOpen and onClose effects. Ideally, i would like to implement this below code into the above code. 

  1. $("#content-one").modal({onOpen: function (dialog) {
  2. dialog.overlay.fadeIn('slow', function () {
  3. });
  4. }});
Cheers,
tebrown