summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/spam.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/spam.js b/js/spam.js
index 2b70ace..da3a99a 100644
--- a/js/spam.js
+++ b/js/spam.js
@@ -314,6 +314,18 @@ function processData(data) {
infoPane.on('mousedown.drag', null);
});
+ infoPane.select('.content')
+ .insert('button', ':first-child')
+ .text('Spam update')
+ .on('click', function () {
+ refreshSpam();
+ d3.select(this)
+ .style('opacity', '0')
+ .transition()
+ .duration(1000)
+ .style('opacity', '1');
+ });
+
function dragger() {
var changes = {
'left': d3.event.dx,