mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
Add back the choices, change the separator options
This commit is contained in:
parent
16b1379b01
commit
8e7f0aa268
|
@ -17,7 +17,7 @@ Discourse.ListSettingComponent = Ember.Component.extend({
|
|||
this.$("input").select2({
|
||||
multiple: false,
|
||||
separator: "|",
|
||||
tokenSeparators: [",", " ", "|"],
|
||||
tokenSeparators: ["|"],
|
||||
tags : this.get("choices") || [],
|
||||
width: 'off'
|
||||
}).on("change", function(obj) {
|
||||
|
|
|
@ -58,6 +58,15 @@ basic:
|
|||
refresh: true
|
||||
list: true
|
||||
default: 'latest|new|unread|starred|top|categories'
|
||||
choices:
|
||||
- latest
|
||||
- new
|
||||
- unread
|
||||
- starred
|
||||
- top
|
||||
- categories
|
||||
- read
|
||||
- posted
|
||||
post_menu:
|
||||
client: true
|
||||
list: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user