client/client.js
// Check if there's something in the clipboard
Check if there's something in the clipboard
Check if there ' s something in the clipboard
function checkClipboard() {
    if (droppy.clipboard) {
      $(".view").each(function() {
        var view = $(this),
          button = view.find(".paste-button");
        button.addClass("in").regOne("click", function(event) {
          event.stopPropagation();
          if (droppy.socketWait) return;
          droppy.clipboard.dst = join(view[0].currentFolder, basename(droppy.clipboard.src));
          showSpinner(view);
          sendMessage(view[0].vId, "CLIPBOARD", droppy.clipboard);
          droppy.clipboard = null;
          toggleCatcher(false);
          $(".paste-button").removeClass("in");
        }).transition("in");
      });
    } else {
      $(".paste-button").removeClass("in");
    }
  }
function checkClipboard ( ) { if ( droppy . clipboard ) { $ ( ".view" ) . each ( function ( ) { var view = $ ( this ) , button = view . find ( ".paste-button" ) ; button . addClass ( "in" ) . regOne ( "click" , function ( event ) { event . stopPropagation ( ) ; if ( droppy . socketWait ) return ; droppy . clipboard . dst = join ( view [ 0 ] . currentFolder , basename ( droppy . clipboard . src ) ) ; showSpinner ( view ) ; sendMessage ( view [ 0 ] . vId , "CLIPBOARD" , droppy . clipboard ) ; droppy . clipboard = null ; toggleCatcher ( false ) ; $ ( ".paste-button" ) . removeClass ( "in" ) ; } ) . transition ( "in" ) ; } ) ; } else { $ ( ".paste-button" ) . removeClass ( "in" ) ; } }
Check if there's something in the clipboard
Check if there ' s something in the clipboard