function closePreview(element) {
    var $element = $('#imagePreview');

    $element.fadeOut(200, function(){
      $element.remove();
      lockScrolling(false);
    });
  }
// Close the preview (with a fade and removal)
Close the preview (with a fade and removal)
Close the preview ( with a fade and removal )
function closePreview(element) {
    var $element = $('#imagePreview');
    $element.fadeOut(200, function(){
      $element.remove();
      lockScrolling(false);
    });
  }
function closePreview ( element ) { var $element = $ ( '#imagePreview' ) ; $element . fadeOut ( 200 , function ( ) { $element . remove ( ) ; lockScrolling ( false ) ; } ) ; }
Close the preview (with a fade and removal)
Close the preview ( with a fade and removal )