+
@@ -341,6 +346,14 @@
}
});
+ // stops a part upgrade error - this change requires emoncms/emoncms repo to also be updated
+ // keep button hidden if new version of clipboard.js is not available
+ if (typeof copyToClipboardCustomMsg === 'function') {
+ document.getElementById('copy-csv').classList.remove('hidden');
+ } else {
+ copyToClipboardCustomMsg = function () {}
+ }
+
/******************************************
Functions
******************************************/
diff --git a/view.php b/view.php
index 466e658..f3585ad 100644
--- a/view.php
+++ b/view.php
@@ -36,6 +36,7 @@
-->
+
@@ -204,8 +205,12 @@
-
-
+
+
+
+
+
+
@@ -235,8 +240,15 @@
});
}
+ // stops a part upgrade error - this change requires emoncms/emoncms repo to also be updated
+ // keep button hidden if new version of clipboard.js is not available
+ if (typeof copyToClipboardCustomMsg === 'function') {
+ document.getElementById('copy-csv').classList.remove('hidden');
+ } else {
+ copyToClipboardCustomMsg = function () {}
+ }
+
// Assign active feedid from URL
- console.log(window.location.pathname);
var urlparts = window.location.pathname.split("graph/");
if (urlparts.length==2) {
var feedids = urlparts[1].split(",");