mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Merge branch 'master' of github.com:discourse/discourse
This commit is contained in:
commit
0ab9a0867a
3 changed files with 8 additions and 7 deletions
|
@ -37,6 +37,8 @@ var controllerOpts = {
|
|||
var filter = this.get('model.filter'),
|
||||
self = this;
|
||||
|
||||
this.setProperties({ order: 'default', ascending: false });
|
||||
|
||||
// Don't refresh if we're still loading
|
||||
if (this.get('controllers.discovery.loading')) { return; }
|
||||
|
||||
|
|
|
@ -250,7 +250,10 @@ Discourse.URL = Em.Object.createWithMixins({
|
|||
navigatedToHome: function(oldPath, path) {
|
||||
var homepage = Discourse.Utilities.defaultHomepage();
|
||||
|
||||
if (window.history && window.history.pushState && path === "/" && (oldPath === "/" || oldPath === "/" + homepage)) {
|
||||
if (window.history &&
|
||||
window.history.pushState &&
|
||||
(path === "/" || path === "/" + homepage) &&
|
||||
(oldPath === "/" || oldPath === "/" + homepage)) {
|
||||
this.appEvents.trigger('url:refresh');
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -37,17 +37,13 @@
|
|||
{{/if}}
|
||||
</th>
|
||||
{{/if}}
|
||||
{{#sortable-heading sortBy="default" action="changeSort" order=order ascending=ascending}}
|
||||
{{i18n topic.title}}
|
||||
{{/sortable-heading}}
|
||||
{{#sortable-heading}} {{i18n topic.title}} {{/sortable-heading}}
|
||||
{{#unless controller.hideCategory}}
|
||||
{{#sortable-heading sortBy="category" action="changeSort" order=order ascending=ascending}}
|
||||
{{i18n category_title}}
|
||||
{{/sortable-heading}}
|
||||
{{/unless}}
|
||||
{{#sortable-heading sortBy="posters" action="changeSort" order=order ascending=ascending}}
|
||||
{{i18n users}}
|
||||
{{/sortable-heading}}
|
||||
{{#sortable-heading}} {{i18n users}} {{/sortable-heading}}
|
||||
{{#sortable-heading sortBy="posts" number=true action="changeSort" order=order ascending=ascending}}
|
||||
{{i18n posts}}
|
||||
{{/sortable-heading}}
|
||||
|
|
Loading…
Reference in a new issue