mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
4714a562d9
FIX: Open/Closing the poll wasn't updating the UI REFACTOR: ES6 FTW
9 lines
234 B
JavaScript
9 lines
234 B
JavaScript
Discourse.Dialect.inlineBetween({
|
|
start: '[poll]',
|
|
stop: '[/poll]',
|
|
rawContents: true,
|
|
emitter: function(contents) {
|
|
var list = Discourse.Dialect.cook(contents, {});
|
|
return ['div', { class: 'poll-ui' }, list];
|
|
}
|
|
});
|