From 4e34dd17fdf373da849ed9c9f552c963d483e469 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 23 Dec 2016 16:20:15 +0300 Subject: [PATCH] [SSE mobile] refactoring --- apps/spreadsheeteditor/mobile/app/controller/Statusbar.js | 6 +++--- .../mobile/resources/less/material/_icons.less | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js b/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js index ae9d06b6e..573239c61 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js @@ -74,13 +74,13 @@ define([ this.sheets = this.getApplication().getCollection('Sheets'); this.sheets.bind({ - add : function (model, collection, opts) { + add: function (model, collection, opts) { console.log('add in collection'); }, - change : function (model) { + change: function (model) { console.log('change in collection'); }, - reset : function (collection, opts) { + reset: function (collection, opts) { me.statusbar.clearTabs(); collection.each(function(model) { var $item = me.statusbar.addSheet(model); diff --git a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less index e40bd088e..a8f11736c 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less @@ -105,6 +105,11 @@ i.icon { height: 22px; .encoded-svg-background('icons_for_svg'); } + &.icon-function { + width: 22px; + height: 22px; + background-image: url(../img/function.png); + } // Reorder