FIX: emoji toolbar wasn't showing up after a page reload

This commit is contained in:
Régis Hanol 2015-01-07 10:46:43 +01:00
parent 6512e403ae
commit 66882155f0
1 changed files with 3 additions and 3 deletions

View File

@ -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