mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Fix issue with Mithril 0.2.0 (invalid m.route call)
This commit is contained in:
parent
d9cde4a4e3
commit
fbcada96a9
|
@ -120,7 +120,7 @@ export default class DiscussionList extends Component {
|
||||||
href: startUser ? app.route('user', { username: startUser.username() }) : undefined,
|
href: startUser ? app.route('user', { username: startUser.username() }) : undefined,
|
||||||
config: function(element, isInitialized, context) {
|
config: function(element, isInitialized, context) {
|
||||||
$(element).tooltip({ placement: 'right' })
|
$(element).tooltip({ placement: 'right' })
|
||||||
m.route.call(this, element)
|
m.route.apply(this, arguments)
|
||||||
},
|
},
|
||||||
title: 'Started by '+(startUser ? startUser.username() : '[deleted]')+' '+humanTime(discussion.startTime())
|
title: 'Started by '+(startUser ? startUser.username() : '[deleted]')+' '+humanTime(discussion.startTime())
|
||||||
}, [
|
}, [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user