Fix thumb-list
This commit is contained in:
parent
6e1afc37f3
commit
a507452c7f
|
@ -869,12 +869,16 @@ define([
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
||||||
'<div class="thumb-list">',
|
'<div class="thumb-list">',
|
||||||
|
'<div class="thumb-wrap" template="">',
|
||||||
|
'<div class="blank-document-btn thumb">',
|
||||||
|
'<svg class="btn-blank-format"><use xlink:href="#svg-format-blank"></use></svg>',
|
||||||
|
'</div>',
|
||||||
|
'<div class="title"><%= scope.titleText(scope.fromBlankText) %></div>',
|
||||||
|
'</div>',
|
||||||
'<% _.each(docs, function(item, index) { %>',
|
'<% _.each(docs, function(item, index) { %>',
|
||||||
'<div class="thumb-wrap" template="<%= item.url %>">',
|
'<div class="thumb-wrap" template="<%= item.url %>">',
|
||||||
'<div class="thumb" ',
|
'<div class="thumb" ',
|
||||||
'<% if(index == 0) { ' +
|
'<% if (!_.isEmpty(item.image)) {%> ',
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
|
|
||||||
' } else if (!_.isEmpty(item.image)) {%> ',
|
|
||||||
' style="background-image: url(<%= item.image %>);">',
|
' style="background-image: url(<%= item.image %>);">',
|
||||||
' <%} else {' +
|
' <%} else {' +
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
||||||
|
@ -904,7 +908,7 @@ define([
|
||||||
scope: this,
|
scope: this,
|
||||||
docs: this.options[0].docs
|
docs: this.options[0].docs
|
||||||
}));
|
}));
|
||||||
var docs=this.options[0].docs;
|
var docs=[{title: this.fromBlankText}].concat(this.options[0].docs);
|
||||||
var thumbsElm= this.$el.find('.thumb-wrap');
|
var thumbsElm= this.$el.find('.thumb-wrap');
|
||||||
_.each(thumbsElm, function (tmb, index){
|
_.each(thumbsElm, function (tmb, index){
|
||||||
$(tmb).find('.title').tooltip({
|
$(tmb).find('.title').tooltip({
|
||||||
|
|
|
@ -767,12 +767,16 @@ define([
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
||||||
'<div class="thumb-list">',
|
'<div class="thumb-list">',
|
||||||
|
'<div class="thumb-wrap" template="">',
|
||||||
|
'<div class="blank-document-btn thumb">',
|
||||||
|
'<svg class="btn-blank-format"><use xlink:href="#svg-format-blank"></use></svg>',
|
||||||
|
'</div>',
|
||||||
|
'<div class="title"><%= scope.titleText(scope.fromBlankText) %></div>',
|
||||||
|
'</div>',
|
||||||
'<% _.each(docs, function(item, index) { %>',
|
'<% _.each(docs, function(item, index) { %>',
|
||||||
'<div class="thumb-wrap" template="<%= item.url %>">',
|
'<div class="thumb-wrap" template="<%= item.url %>">',
|
||||||
'<div class="thumb" ',
|
'<div class="thumb" ',
|
||||||
'<% if(index == 0) { ' +
|
'<% if (!_.isEmpty(item.image)) {%> ',
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
|
|
||||||
' } else if (!_.isEmpty(item.image)) {%> ',
|
|
||||||
' style="background-image: url(<%= item.image %>);">',
|
' style="background-image: url(<%= item.image %>);">',
|
||||||
' <%} else {' +
|
' <%} else {' +
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
||||||
|
@ -802,7 +806,7 @@ define([
|
||||||
scope: this,
|
scope: this,
|
||||||
docs: this.options[0].docs
|
docs: this.options[0].docs
|
||||||
}));
|
}));
|
||||||
var docs=this.options[0].docs;
|
var docs=[{title: this.fromBlankText}].concat(this.options[0].docs);
|
||||||
var thumbsElm= this.$el.find('.thumb-wrap');
|
var thumbsElm= this.$el.find('.thumb-wrap');
|
||||||
_.each(thumbsElm, function (tmb, index){
|
_.each(thumbsElm, function (tmb, index){
|
||||||
$(tmb).find('.title').tooltip({
|
$(tmb).find('.title').tooltip({
|
||||||
|
|
|
@ -1734,12 +1734,16 @@ define([
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
'<h3 style="margin-top: 20px;"><%= scope.txtCreateNew %></h3>',
|
||||||
'<div class="thumb-list">',
|
'<div class="thumb-list">',
|
||||||
|
'<div class="thumb-wrap" template="">',
|
||||||
|
'<div class="blank-document-btn thumb">',
|
||||||
|
'<svg class="btn-blank-format"><use xlink:href="#svg-format-blank"></use></svg>',
|
||||||
|
'</div>',
|
||||||
|
'<div class="title"><%= scope.titleText(scope.fromBlankText) %></div>',
|
||||||
|
'</div>',
|
||||||
'<% _.each(docs, function(item, index) { %>',
|
'<% _.each(docs, function(item, index) { %>',
|
||||||
'<div class="thumb-wrap" template="<%= item.url %>">',
|
'<div class="thumb-wrap" template="<%= item.url %>">',
|
||||||
'<div class="thumb" ',
|
'<div class="thumb" ',
|
||||||
'<% if(index == 0) { ' +
|
'<% if (!_.isEmpty(item.image)) {%> ',
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
|
|
||||||
' } else if (!_.isEmpty(item.image)) {%> ',
|
|
||||||
' style="background-image: url(<%= item.image %>);">',
|
' style="background-image: url(<%= item.image %>);">',
|
||||||
' <%} else {' +
|
' <%} else {' +
|
||||||
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
'print(\"><svg class=\'btn-blank-format\'><use xlink:href=\'#svg-file-template\'></use></svg>\")' +
|
||||||
|
@ -1769,7 +1773,7 @@ define([
|
||||||
scope: this,
|
scope: this,
|
||||||
docs: this.options[0].docs
|
docs: this.options[0].docs
|
||||||
}));
|
}));
|
||||||
var docs=this.options[0].docs;
|
var docs=[{title: this.fromBlankText}].concat(this.options[0].docs);
|
||||||
var thumbsElm= this.$el.find('.thumb-wrap');
|
var thumbsElm= this.$el.find('.thumb-wrap');
|
||||||
_.each(thumbsElm, function (tmb, index){
|
_.each(thumbsElm, function (tmb, index){
|
||||||
$(tmb).find('.title').tooltip({
|
$(tmb).find('.title').tooltip({
|
||||||
|
|
Loading…
Reference in a new issue