Displaying 1 result from an estimated 1 matches for "copy_ie_clipboard".
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...t;";
+ }
+}
+
+function substitute_variables(s) {
+ var version = get_anyterm_version();
+ if (version!="") {
+ version="-"+version;
+ }
+ var hostname=document.location.host;
+ return s.replace(/%v/g,version).replace(/%h/g,hostname);
+}
+
+
+// Copying
+
+function copy_ie_clipboard() {
+ try {
+ window.document.execCommand("copy",false,null);
+ } catch (err) {
+ return undefined;
+ }
+ return 1;
+}
+
+function copy_mozilla_clipboard() {
+ // Thanks to Simon Wissinger for this function.
+
+ try {
+ netscape.security.PrivilegeManager.enablePrivilege(&qu...