now can choose which topics to bag in the control pannel

This commit is contained in:
Glen Turner
2015-06-29 16:56:20 -07:00
parent d146020719
commit 09f78ce4d8
14 changed files with 205 additions and 96 deletions

12
backend/js/Topic.js Normal file
View File

@@ -0,0 +1,12 @@
function Topic (name) {
this.name = name;
this.bag = true;
this.type = "";
}
Array.prototype.indexOfTopic = function(name) {
for (var i = 0; i < this.length; i++)
if (this[i].name == name)
return i;
return -1;
}