mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
update message preview effects, fix feed loading on post
This commit is contained in:
parent
b247655a5f
commit
ec00ef7d08
@ -55,14 +55,19 @@
|
||||
color: #ccd3df;
|
||||
font-size: 12px;
|
||||
border-top: 1px #4d5666 solid;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
height: 0
|
||||
}
|
||||
|
||||
.modulePost .preview.active {
|
||||
opacity: 1;
|
||||
height: auto
|
||||
}
|
||||
|
||||
.modulePost .preview .title {
|
||||
float: left;
|
||||
padding: 16px;
|
||||
width: 78px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
left: 56px;
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
.modulePost .preview .title i {
|
||||
@ -70,7 +75,10 @@
|
||||
}
|
||||
|
||||
.modulePost .preview .text {
|
||||
padding: 16px 16px 16px 90px;
|
||||
padding-left: 82px;
|
||||
padding-right: 16px;
|
||||
padding-top: 16px;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.modulePost .button {
|
||||
|
@ -63,10 +63,10 @@ var ModulePost = {
|
||||
if (response.success) {
|
||||
|
||||
if (response.format == '') {
|
||||
$('#modulePostPreview').hide();
|
||||
$('#modulePostPreview').removeClass('active');
|
||||
$('#modulePostPreview .text').html('');
|
||||
} else {
|
||||
$('#modulePostPreview').show();
|
||||
$('#modulePostPreview').addClass('active');
|
||||
$('#modulePostPreview .text').html(response.format);
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ $(document).ready(function() {
|
||||
|
||||
// Event listeners
|
||||
$(document).on('ModulePost.add:success', function(/*event, response*/) {
|
||||
ModuleFeed.load('#moduleFeed', true);
|
||||
ModuleFeed.load('#moduleFeed', 1, true);
|
||||
});
|
||||
|
||||
$('#modulePostMessage').on('keyup', function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user