mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-04 13:19:48 +03:00
semi-working
This commit is contained in:
parent
94a3bc7e84
commit
8f714ad02d
@ -245,7 +245,7 @@ module.exports = query({
|
|||||||
},
|
},
|
||||||
setTitle: function() {
|
setTitle: function() {
|
||||||
var ref1, title;
|
var ref1, title;
|
||||||
title = $('#cont h1').first().text() || this.props.name;
|
title = $('#body h1').first().text() || this.props.name;
|
||||||
if ((ref1 = this.props.meta) != null ? ref1.title : void 0) {
|
if ((ref1 = this.props.meta) != null ? ref1.title : void 0) {
|
||||||
title = this.props.meta.title;
|
title = this.props.meta.title;
|
||||||
}
|
}
|
||||||
@ -263,9 +263,9 @@ module.exports = query({
|
|||||||
history.pushState({}, "", util.basepath(href_parts.join("")));
|
history.pushState({}, "", util.basepath(href_parts.join("")));
|
||||||
}
|
}
|
||||||
if (next !== this.props.path) {
|
if (next !== this.props.path) {
|
||||||
React.unmountComponentAtNode($('#cont')[0]);
|
React.unmountComponentAtNode($('#body')[0]);
|
||||||
TreeActions.setCurr(next);
|
TreeActions.setCurr(next);
|
||||||
return React.render(BodyComponent({}, ""), $('#cont')[0]);
|
return React.render(BodyComponent({}, ""), $('#body')[0]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reset: function() {
|
reset: function() {
|
||||||
@ -277,7 +277,6 @@ module.exports = query({
|
|||||||
return $('#nav').addClass('m-down m-fixed');
|
return $('#nav').addClass('m-down m-fixed');
|
||||||
},
|
},
|
||||||
goTo: function(path) {
|
goTo: function(path) {
|
||||||
this.toggleFocus(false);
|
|
||||||
this.reset();
|
this.reset();
|
||||||
return this.setPath(path);
|
return this.setPath(path);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user