diff --git a/apps/documenteditor/mobile/app-dev.js b/apps/documenteditor/mobile/app-dev.js index 3b4964c488..e9007d7abd 100644 --- a/apps/documenteditor/mobile/app-dev.js +++ b/apps/documenteditor/mobile/app-dev.js @@ -80,11 +80,6 @@ require.config({ ], exports: 'Backbone' }, - notification: { - deps: [ - 'backbone' - ] - }, core: { deps: [ 'backbone', diff --git a/apps/documenteditor/mobile/app.js b/apps/documenteditor/mobile/app.js index 1e37d27086..fe0c684f27 100644 --- a/apps/documenteditor/mobile/app.js +++ b/apps/documenteditor/mobile/app.js @@ -82,11 +82,6 @@ require.config({ ], exports: 'Backbone' }, - notification: { - deps: [ - 'backbone' - ] - }, core: { deps: [ 'backbone', diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index cdf587ed12..3123bb0e18 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -235,19 +235,19 @@ define([ event: 'addlink' }); } - - if (isLink) { - menuItems.push({ - caption: 'Open Link', - event: 'openlink' - }); - } } if (Common.SharedSettings.get('phone') && menuItems.length > 3) { menuItems = menuItems.slice(0, 3); } + if (isLink) { + menuItems.push({ + caption: 'Open Link', + event: 'openlink' + }); + } + return menuItems; } } diff --git a/apps/documenteditor/mobile/app/controller/add/AddShape.js b/apps/documenteditor/mobile/app/controller/add/AddShape.js index ba3adf7320..39d7f81f57 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddShape.js +++ b/apps/documenteditor/mobile/app/controller/add/AddShape.js @@ -188,8 +188,13 @@ define([ } ]; - Common.SharedSettings.set('shapes', _styles); - Common.NotificationCenter.trigger('shapes:load', _styles); + var elementsInRow = 4; + var groups = _.chain(_styles).groupBy(function(element, index){ + return Math.floor(index/elementsInRow); + }).toArray().value(); + + Common.SharedSettings.set('shapes', groups); + Common.NotificationCenter.trigger('shapes:load', groups); }, setApi: function (api) { diff --git a/apps/documenteditor/mobile/app/template/AddShape.template b/apps/documenteditor/mobile/app/template/AddShape.template index f8a244a073..252e4163d6 100644 --- a/apps/documenteditor/mobile/app/template/AddShape.template +++ b/apps/documenteditor/mobile/app/template/AddShape.template @@ -1,12 +1,14 @@
-
\ No newline at end of file diff --git a/apps/documenteditor/mobile/app/template/AddTable.template b/apps/documenteditor/mobile/app/template/AddTable.template index dbf1c5771f..69398316df 100644 --- a/apps/documenteditor/mobile/app/template/AddTable.template +++ b/apps/documenteditor/mobile/app/template/AddTable.template @@ -1,7 +1,7 @@
-