-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathcsv-plugin.js
More file actions
35 lines (31 loc) · 843 Bytes
/
Copy pathcsv-plugin.js
File metadata and controls
35 lines (31 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*globals scrum */
// Add a plugin for github integration
scrum.sources.push({
// Fixed properties and methods
name: "CSV",
position: 5,
view: "templates/csv_source.html",
feedback: false,
// Feedback call for completed poll
completed: function(result) {
},
// Custom properties and methods
loaded: false,
format: '',
// Issues after parsing the file
issues: [],
issue: {},
event: ['poll', 'start', 'CSV'],
// Load issues from github
load: function() {
var self = this;
// Upload file http://stackoverflow.com/a/22538760
var file = document.getElementById('csv_issues').files[0];
var reader = new FileReader();
reader.addEventListener("load", function (event) {
var textFile = event.target;
var content = textFile.result;
});
reader.readAsText(file);
}
});