Index: js/webfm.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webfm/js/webfm.js,v
retrieving revision 1.31
diff -u -p -r1.31 webfm.js
--- js/webfm.js	19 Aug 2009 15:30:45 -0000	1.31
+++ js/webfm.js	17 Sep 2009 18:32:08 -0000
@@ -99,7 +99,6 @@ Webfm.menu_msg["view"] = Drupal.t("View 
 Webfm.menu_msg["enum"] = Drupal.t("Add file to database");
 Webfm.menu_msg["denum"] = Drupal.t("Remove file from database");
 Webfm.menu_msg["perm"] = Drupal.t("File permissions");
-Webfm.menu_msg["clip"] = Drupal.t("Copy link to clipboard");
 Webfm.menu_msg["paste"] = Drupal.t("Paste link in editor window");
 //Do not translate any code below this line
@@ -400,7 +399,6 @@ Webfm.commonInterface = function(parent)
     Webfm.menuHT.put('file', new Webfm.menuElement(Webfm.menu_msg["denum"], Webfm.menuDbRem, Webfm.menuAdminFidVal));
     Webfm.menuHT.put('file', new Webfm.menuElement(Webfm.menu_msg["perm"], Webfm.menuGetPerm, Webfm.menuFilePerm));
     Webfm.menuHT.put('file', new Webfm.menuElement(Webfm.menu_msg["paste"], Webfm.menuPasteHref, ''));
-    Webfm.menuHT.put('file', new Webfm.menuElement(Webfm.menu_msg["clip"], Webfm.menuPutLinkInClipboard, ''))
   } catch(err) {
     alert("Menu Create err\n" + err);
   }
@@ -2054,10 +2052,6 @@ Webfm.generateFileHref  = function(obj, 
   return string;
 }
 
-Webfm.menuPutLinkInClipboard = function(obj) {
-  Webfm.copyToClipboard(Webfm.generateFileHref(obj));
-}
-
 Webfm.menuPasteHref = function(obj) {
   var fileHref = Webfm.generateFileHref(obj, getBasePath().replace(/\/$/,''));
   var myField = Webfm.lastarea;
@@ -3886,45 +3880,6 @@ Webfm.rclick= function(event) {
   return rightclick;
 }
 
-Webfm.copyToClipboard = function(s)
-{
-  if(window.clipboardData && clipboardData.setData) {
-  	clipboardData.setData("Text", s);
-  } else if(Webfm.browser.isOP) {
-    alert("Clipboard function not supported in Opera. Copy link address from context menu.");
-  } else if(window.netscape) {
-  	// You have to sign the code to enable this or allow the action in about:config by changing
-    // user_pref("signed.applets.codebase_principal_support", true);
-    try {
-      netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
-    } catch(e) {
-      alert("This feature requires 'signed.applets.codebase_principal_support=true' at about:config");
-      return false;
-    }
-
-  	var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
-  	if(!clip) return;
-
-  	// create a transferable
-  	var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
-  	if(!trans) return;
-
-  	// specify the data we wish to handle. Plaintext in this case.
-  	trans.addDataFlavor('text/unicode');
-
-  	// To get the data from the transferable we need two new objects
-  	var str = new Object();
-  	var len = new Object();
-    var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
-  	var copytext = s;
-  	str.data = copytext;
-  	trans.setTransferData("text/unicode", str, copytext.length * 2);
-  	var clipid = Components.interfaces.nsIClipboard;
-  	if(!clip) return false;
-  	clip.setData(trans, null, clipid.kGlobalClipboard);
-  }
-}
-
 // Dump debug function
 // return a string version of a thing, without name.
 // calls recursive function to actually traverse content.
