l10n typos & CSS fixes

This commit is contained in:
2020-04-25 17:02:24 +02:00
parent dc570f883b
commit 52669bed48
7 changed files with 25 additions and 17 deletions

View File

@@ -221,15 +221,18 @@ function initProject(sProjectCodeName){
}
function initPosts() {
//Add post form
var asPoster = {
type: 'poster',
formatted_time: '',
relative_time: oSpot.lang('post_new_message')
};
getPost(asPoster).appendTo($('#poster'));
$('#poster').append(getPost(asPoster));
//Auto-adjust text area height
autosize($('#post'));
//Add post Event handling
$('#submit').click(function(){
if($('#poster').checkForm())
{
@@ -641,7 +644,7 @@ function updateFeed(bFirstChunk, bDiscrete) {
self.tmp('updatable', true);
if(bFirstChunk && !isMobile() && !$.isEmptyObject(asData)) toggleFeedPanel(true, 'none');
if(bFirstChunk && !isMobile() && !$.isEmptyObject(asData) && !bDiscrete) toggleFeedPanel(true, 'none');
}, {
'project_id': self.vars(['project', 'id']),
'chunk': self.tmp('news_chunk')