now can choose which topics to bag in the control pannel
This commit is contained in:
12
backend/js/Topic.js
Normal file
12
backend/js/Topic.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user