clean up jquery ref and strings

This commit is contained in:
Connor Turland 2017-09-19 10:02:05 -04:00
parent 3406f2e04d
commit c4d0bf8ce4
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ const Topic = {
fetchSiblings: function(nodes, metacodeId) {
var self = this
var node = $.isArray(nodes) ? nodes[0] : nodes
var node = Array.isArray(nodes) ? nodes[0] : nodes
var topics = DataModel.Topics.map(function(t) { return t.id })
var topicsString = topics.join()
@ -156,7 +156,7 @@ const Topic = {
}
})
})
if ($.isArray(nodes) && nodes.length > 1) {
if (Array.isArray(nodes) && nodes.length > 1) {
self.fetchSiblings(nodes.slice(1), metacodeId)
}
}

View file

@ -52,7 +52,7 @@ const ContextMenu = {
},
popoutTopic: (render, id) => {
ContextMenu.reset(render)
const win = window.open('/topics/' + id, '_blank')
const win = window.open(`/topics/${id}`, '_blank')
win.focus()
},
updatePermissions: (render, permission) => {