diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 668c4f406..998265dd5 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -867,18 +867,6 @@ define([ }, template: _.template([ - /* '

<%= scope.fromBlankText %>


', - '
', - '
', - '', - '', - '', - '
', - '
', - '

<%= scope.newDocumentText %>

', - '<%= scope.newDescriptionText %>', - '
', - '
',*/ '

<%= scope.txtCreateNew %>

', '
', '<% _.each(docs, function(item, index) { %>', @@ -909,6 +897,14 @@ define([ scope: this, docs: this.options[0].docs })); + var docs=this.options[0].docs; + var thumbsElm= this.$el.find('.thumb-wrap'); + _.each(thumbsElm, function (tmb, index){ + $(tmb).find('.title').tooltip({ + title : docs[index].title, + placement : 'top-right'||'coursor' + }); + }); if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index dd734484b..8a80aeff3 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -798,10 +798,9 @@ define([ var docs=this.options[0].docs; var thumbsElm= this.$el.find('.thumb-wrap'); _.each(thumbsElm, function (tmb, index){ - //var chFirst=$(tmb).children(':first'); - $(tmb).tooltip({ + $(tmb).find('.title').tooltip({ title : docs[index].title, - placement : 'bottom'||'coursor' + placement : 'top-right'||'coursor' }); }); diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 7a3a17670..80f06c043 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1732,30 +1732,20 @@ define([ }, template: _.template([ - '

<%= scope.fromBlankText %>


', - '
', - '
', - '', - '', - '', - '
', - '
', - '

<%= scope.newDocumentText %>

', - '<%= scope.newDescriptionText %>', - '
', - '
', - '

<%= scope.fromTemplateText %>


', + '

<%= scope.txtCreateNew %>

', '
', - '<% _.each(docs, function(item) { %>', + '<% _.each(docs, function(item, index) { %>', '
', - '
', + '
\")' + + ' } else if (!_.isEmpty(item.image)) {%> ', ' style="background-image: url(<%= item.image %>);">', - '<% } else { ' + - 'print(\">\")' + - ' } %>', - '
', - '
<%= Common.Utils.String.htmlEncode(item.title || item.name || "") %>
', + ' <%} else {' + + 'print(\">\")' + + ' } %>', + '
', + '
<%= Common.Utils.String.htmlEncode(item.title || item.name || "") %>
', '
', '<% }) %>', '
' @@ -1772,6 +1762,14 @@ define([ scope: this, docs: this.options[0].docs })); + var docs=this.options[0].docs; + var thumbsElm= this.$el.find('.thumb-wrap'); + _.each(thumbsElm, function (tmb, index){ + $(tmb).find('.title').tooltip({ + title : docs[index].title, + placement : 'top-right'||'coursor' + }); + }); if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ @@ -1802,7 +1800,8 @@ define([ fromBlankText : 'From Blank', newDocumentText : 'New Spreadsheet', newDescriptionText : 'Create a new blank text document which you will be able to style and format after it is created during the editing. Or choose one of the templates to start a document of a certain type or purpose where some styles have already been pre-applied.', - fromTemplateText : 'From Template' + fromTemplateText : 'From Template', + txtCreateNew : 'Create New' }, SSE.Views.FileMenuPanels.CreateNew || {})); SSE.Views.FileMenuPanels.DocumentInfo = Common.UI.BaseView.extend(_.extend({