Merge branch 'feature/mobile-settings' into develop
This commit is contained in:
commit
66b9884086
|
@ -147,9 +147,19 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
renderComments: function (comments) {
|
renderComments: function (comments) {
|
||||||
|
var $pageComments = $('.page-comments .page-content');
|
||||||
|
if (!comments) {
|
||||||
|
if ($('.comment').length > 0) {
|
||||||
|
$('.comment').remove();
|
||||||
|
}
|
||||||
|
var template = '<div id="no-comments" style="text-align: center; margin-top: 35px;">' + this.textNoComments + '</div>';
|
||||||
|
$pageComments.append(_.template(template));
|
||||||
|
} else {
|
||||||
|
if ($('#no-comments').length > 0) {
|
||||||
|
$('#no-comments').remove();
|
||||||
|
}
|
||||||
var $listComments = $('#comments-list'),
|
var $listComments = $('#comments-list'),
|
||||||
items = [];
|
items = [];
|
||||||
|
|
||||||
_.each(comments, function (comment) {
|
_.each(comments, function (comment) {
|
||||||
var itemTemplate = [
|
var itemTemplate = [
|
||||||
'<li class="comment item-content">',
|
'<li class="comment item-content">',
|
||||||
|
@ -177,11 +187,11 @@ define([
|
||||||
items.push(_.template(itemTemplate)({
|
items.push(_.template(itemTemplate)({
|
||||||
android: Framework7.prototype.device.android,
|
android: Framework7.prototype.device.android,
|
||||||
item: comment,
|
item: comment,
|
||||||
replys: comment.replys.length
|
replys: comment.replys.length,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
$listComments.html(items);
|
$listComments.html(items);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
@ -198,8 +208,8 @@ define([
|
||||||
textFinal: 'Final',
|
textFinal: 'Final',
|
||||||
textOriginal: 'Original',
|
textOriginal: 'Original',
|
||||||
textChange: 'Review Change',
|
textChange: 'Review Change',
|
||||||
textEditUsers: 'Users'
|
textEditUsers: 'Users',
|
||||||
|
textNoComments: "This document doesn\'t contain comments"
|
||||||
}
|
}
|
||||||
})(), Common.Views.Collaboration || {}))
|
})(), Common.Views.Collaboration || {}))
|
||||||
});
|
});
|
|
@ -75,6 +75,7 @@
|
||||||
"Common.Views.Collaboration.textReview": "Track Changes",
|
"Common.Views.Collaboration.textReview": "Track Changes",
|
||||||
"Common.Views.Collaboration.textReviewing": "Review",
|
"Common.Views.Collaboration.textReviewing": "Review",
|
||||||
"Common.Views.Collaboration.textСomments": "Сomments",
|
"Common.Views.Collaboration.textСomments": "Сomments",
|
||||||
|
"Common.Views.Collaboration.textNoComments": "This document doesn't contain comments",
|
||||||
"DE.Controllers.AddContainer.textImage": "Image",
|
"DE.Controllers.AddContainer.textImage": "Image",
|
||||||
"DE.Controllers.AddContainer.textOther": "Other",
|
"DE.Controllers.AddContainer.textOther": "Other",
|
||||||
"DE.Controllers.AddContainer.textShape": "Shape",
|
"DE.Controllers.AddContainer.textShape": "Shape",
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
||||||
"Common.Views.Collaboration.textEditUsers": "Users",
|
"Common.Views.Collaboration.textEditUsers": "Users",
|
||||||
"Common.Views.Collaboration.textСomments": "Сomments",
|
"Common.Views.Collaboration.textСomments": "Сomments",
|
||||||
|
"Common.Views.Collaboration.textNoComments": "This presentation doesn't contain comments",
|
||||||
"PE.Controllers.AddContainer.textImage": "Image",
|
"PE.Controllers.AddContainer.textImage": "Image",
|
||||||
"PE.Controllers.AddContainer.textLink": "Link",
|
"PE.Controllers.AddContainer.textLink": "Link",
|
||||||
"PE.Controllers.AddContainer.textShape": "Shape",
|
"PE.Controllers.AddContainer.textShape": "Shape",
|
||||||
|
|
|
@ -200,7 +200,7 @@ define([
|
||||||
var $view = $('.settings');
|
var $view = $('.settings');
|
||||||
var disabled = text == 'locked';
|
var disabled = text == 'locked';
|
||||||
|
|
||||||
disabled && (text = ' ');
|
disabled && (text = this.textSelectedRange);
|
||||||
$view.find('#add-link-display input').prop('disabled', disabled).val(text);
|
$view.find('#add-link-display input').prop('disabled', disabled).val(text);
|
||||||
$view.find('#add-link-display .label').toggleClass('disabled', disabled);
|
$view.find('#add-link-display .label').toggleClass('disabled', disabled);
|
||||||
},
|
},
|
||||||
|
@ -261,7 +261,8 @@ define([
|
||||||
textInternalLink: 'Internal Data Range',
|
textInternalLink: 'Internal Data Range',
|
||||||
textSheet: 'Sheet',
|
textSheet: 'Sheet',
|
||||||
textRange: 'Range',
|
textRange: 'Range',
|
||||||
textRequired: 'Required'
|
textRequired: 'Required',
|
||||||
|
textSelectedRange: 'Selected Range'
|
||||||
}
|
}
|
||||||
})(), SSE.Views.AddLink || {}))
|
})(), SSE.Views.AddLink || {}))
|
||||||
});
|
});
|
|
@ -8,6 +8,7 @@
|
||||||
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
"Common.Views.Collaboration.textCollaboration": "Collaboration",
|
||||||
"Common.Views.Collaboration.textEditUsers": "Users",
|
"Common.Views.Collaboration.textEditUsers": "Users",
|
||||||
"Common.Views.Collaboration.textСomments": "Сomments",
|
"Common.Views.Collaboration.textСomments": "Сomments",
|
||||||
|
"Common.Views.Collaboration.textNoComments": "This spreadsheet doesn't contain comments",
|
||||||
"SSE.Controllers.AddChart.txtDiagramTitle": "Chart Title",
|
"SSE.Controllers.AddChart.txtDiagramTitle": "Chart Title",
|
||||||
"SSE.Controllers.AddChart.txtSeries": "Series",
|
"SSE.Controllers.AddChart.txtSeries": "Series",
|
||||||
"SSE.Controllers.AddChart.txtXAxis": "X Axis",
|
"SSE.Controllers.AddChart.txtXAxis": "X Axis",
|
||||||
|
@ -332,6 +333,7 @@
|
||||||
"SSE.Views.AddLink.textRequired": "Required",
|
"SSE.Views.AddLink.textRequired": "Required",
|
||||||
"SSE.Views.AddLink.textSheet": "Sheet",
|
"SSE.Views.AddLink.textSheet": "Sheet",
|
||||||
"SSE.Views.AddLink.textTip": "Screen Tip",
|
"SSE.Views.AddLink.textTip": "Screen Tip",
|
||||||
|
"SSE.Views.AddLink.textSelectedRange": "Selected Range",
|
||||||
"SSE.Views.AddOther.textAddress": "Address",
|
"SSE.Views.AddOther.textAddress": "Address",
|
||||||
"SSE.Views.AddOther.textBack": "Back",
|
"SSE.Views.AddOther.textBack": "Back",
|
||||||
"SSE.Views.AddOther.textFilter": "Filter",
|
"SSE.Views.AddOther.textFilter": "Filter",
|
||||||
|
|
Loading…
Reference in a new issue