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.emojiPage = page;
|
||||||
localStorage.emojiOffset = offset;
|
localStorage.emojiOffset = offset;
|
||||||
|
|
||||||
var rows = [];
|
var toolbarItems = toolbar(page);
|
||||||
var row = [];
|
var rows = [], row = [];
|
||||||
var icons = groups[page].icons;
|
var icons = groups[page].icons;
|
||||||
var max = offset + PER_PAGE;
|
var max = offset + PER_PAGE;
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ var render = function(page, offset){
|
||||||
rows.push(row);
|
rows.push(row);
|
||||||
|
|
||||||
var model = {
|
var model = {
|
||||||
toolbarItems: toolbar(page),
|
toolbarItems: toolbarItems,
|
||||||
rows: rows,
|
rows: rows,
|
||||||
prevDisabled: offset === 0,
|
prevDisabled: offset === 0,
|
||||||
nextDisabled: (max + 1) > icons.length
|
nextDisabled: (max + 1) > icons.length
|
||||||
|
|
Loading…
Reference in New Issue