lib/thoth/public/js/admin/comments.js
/**
   * Hides the comment with the specified <i>id</i> if it's currently visible,
   * using a fade-out animation. Will lazy-load the YUI Animation library if
   * it hasn't already been loaded.
   *
   * @method hideComment
   * @param {Number} id comment id
   * @private
   */
Hides the comment with the specified id if it's currently visible,
using a fade-out animation. Will lazy-load the YUI Animation library if
it hasn't already been loaded.

@method hideComment
@param {Number} id comment id
@private
Hides the comment with the specified id if it ' s currently visible using a fade - out animation . Will lazy - load the YUI Animation library if it hasn ' t already been loaded . @method hideComment @param { Number } id comment id @private
function hideComment(id) {
    var el = yud.get('comment-' + id);
    if (!el) {
      return;
    }
    function animate() {
      var anim = new yut.Anim(el, {opacity: {to: 0.0}, height: {to: 0}}, 0.2,
            yut.Easing.easeBoth);
      anim.onComplete.subscribe(function () {
        yud.addClass(el, 'hidden');
      });
      anim.animate();
    }
    if (yut.Anim) {
      animate();
    } else {
      LazyLoad.js(Thoth.js.yui.anim, animate);
    }
  }
function hideComment ( id ) { var el = yud . get ( 'comment-' + id ) ; if ( ! el ) { return ; } function animate ( ) { var anim = new yut . Anim ( el , { opacity : { to : 0.0 } , height : { to : 0 } } , 0.2 , yut . Easing . easeBoth ) ; anim . onComplete . subscribe ( function ( ) { yud . addClass ( el , 'hidden' ) ; } ) ; anim . animate ( ) ; } if ( yut . Anim ) { animate ( ) ; } else { LazyLoad . js ( Thoth . js . yui . anim , animate ) ; } }
Hides the comment with the specified <i>id</i> if it's currently visible,
 using a fade-out animation.
Hides the comment with the specified <i > id< / i > if it ' s currently visible using a fade - out animation .