topics wasn't in backbone routes
This commit is contained in:
parent
7ec9feff80
commit
0f740e751a
3 changed files with 5 additions and 4 deletions
|
@ -346,7 +346,7 @@ const Create = {
|
||||||
Create.newSynapse.topic1id = 0
|
Create.newSynapse.topic1id = 0
|
||||||
Create.newSynapse.topic2id = 0
|
Create.newSynapse.topic2id = 0
|
||||||
Mouse.synapseStartCoordinates = []
|
Mouse.synapseStartCoordinates = []
|
||||||
Visualize.mGraph.plot()
|
if (Visualize.mGraph) Visualize.mGraph.plot()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,8 @@ const _Router = Backbone.Router.extend({
|
||||||
'': 'home', // #home
|
'': 'home', // #home
|
||||||
'explore/:section': 'explore', // #explore/active
|
'explore/:section': 'explore', // #explore/active
|
||||||
'explore/:section/:id': 'explore', // #explore/mapper/1234
|
'explore/:section/:id': 'explore', // #explore/mapper/1234
|
||||||
'maps/:id': 'maps' // #maps/7
|
'maps/:id': 'maps', // #maps/7
|
||||||
|
'topics/:id': 'topics' // #topics/7
|
||||||
},
|
},
|
||||||
home: function () {
|
home: function () {
|
||||||
let self = this
|
let self = this
|
||||||
|
@ -182,8 +183,6 @@ const _Router = Backbone.Router.extend({
|
||||||
topics: function (id) {
|
topics: function (id) {
|
||||||
clearTimeout(this.timeoutId)
|
clearTimeout(this.timeoutId)
|
||||||
|
|
||||||
document.title = 'Topic ' + id + ' | Metamaps'
|
|
||||||
|
|
||||||
this.currentSection = 'topic'
|
this.currentSection = 'topic'
|
||||||
this.currentPage = id
|
this.currentPage = id
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@ const Topic = {
|
||||||
Metamaps.Synapses = new bb.SynapseCollection(data.synapses)
|
Metamaps.Synapses = new bb.SynapseCollection(data.synapses)
|
||||||
Metamaps.Backbone.attachCollectionEvents()
|
Metamaps.Backbone.attachCollectionEvents()
|
||||||
|
|
||||||
|
document.title = Active.Topic.get('name') + ' | Metamaps'
|
||||||
|
|
||||||
// set filter mapper H3 text
|
// set filter mapper H3 text
|
||||||
$('#filter_by_mapper h3').html('CREATORS')
|
$('#filter_by_mapper h3').html('CREATORS')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue