mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add a 14 days window to consider topics new
This commit is contained in:
@@ -43,6 +43,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
|
||||
{ name: I18n.t('user.new_topic_duration.after_n_days', { count: 1 }), value: 60 * 24 },
|
||||
{ name: I18n.t('user.new_topic_duration.after_n_days', { count: 2 }), value: 60 * 48 },
|
||||
{ name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 1 }), value: 7 * 60 * 24 },
|
||||
{ name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 2 }), value: 2 * 7 * 60 * 24 },
|
||||
{ name: I18n.t('user.new_topic_duration.last_here'), value: -2 }],
|
||||
|
||||
saveButtonText: function() {
|
||||
@@ -52,8 +53,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
|
||||
actions: {
|
||||
save: function() {
|
||||
var self = this;
|
||||
this.set('saving', true);
|
||||
this.set('saved', false);
|
||||
this.setProperties({ saving: true, saved: false });
|
||||
|
||||
// Cook the bio for preview
|
||||
var model = this.get('model');
|
||||
|
||||
Reference in New Issue
Block a user