mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 18:36:35 +08:00
FIX: emoji toolbar wasn't showing up after a page reload
This commit is contained in:
parent
6512e403ae
commit
66882155f0
|
@ -110,8 +110,8 @@ var render = function(page, offset){
|
|||
localStorage.emojiPage = page;
|
||||
localStorage.emojiOffset = offset;
|
||||
|
||||
var rows = [];
|
||||
var row = [];
|
||||
var toolbarItems = toolbar(page);
|
||||
var rows = [], row = [];
|
||||
var icons = groups[page].icons;
|
||||
var max = offset + PER_PAGE;
|
||||
|
||||
|
@ -126,7 +126,7 @@ var render = function(page, offset){
|
|||
rows.push(row);
|
||||
|
||||
var model = {
|
||||
toolbarItems: toolbar(page),
|
||||
toolbarItems: toolbarItems,
|
||||
rows: rows,
|
||||
prevDisabled: offset === 0,
|
||||
nextDisabled: (max + 1) > icons.length
|
||||
|
|
Loading…
Reference in New Issue
Block a user