mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
Fixed some usability issues during content editing
This commit is contained in:
parent
bc4fb665f7
commit
99b61a6c83
@ -598,7 +598,7 @@ nav-pills.preferences {
|
||||
.mime {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
padding: 1px 0 4px 24px;
|
||||
padding: 1px 0 4px 26px;
|
||||
}
|
||||
.mime-word {
|
||||
background-image: url('../img/mime/word.png');
|
||||
|
@ -781,7 +781,7 @@ nav-pills.preferences {
|
||||
.mime {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
padding: 1px 0 4px 24px;
|
||||
padding: 1px 0 4px 26px;
|
||||
|
||||
}
|
||||
|
||||
|
@ -69,9 +69,11 @@
|
||||
<?php
|
||||
print HHtml::enrichText($comment->message);
|
||||
?>
|
||||
<?php $this->widget('application.modules_core.file.widgets.ShowFilesWidget', array('object' => $comment)); ?>
|
||||
|
||||
</span>
|
||||
|
||||
<?php $this->widget('application.modules_core.file.widgets.ShowFilesWidget', array('object' => $comment)); ?>
|
||||
|
||||
<div class="wall-entry-controls">
|
||||
<?php Yii::app()->getController()->widget('application.modules_core.like.widgets.LikeLinkWidget', array('object' => $comment)); ?>
|
||||
</div>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<?php if (count($files) != 0) : ?>
|
||||
|
||||
<!-- Show Images as Thumbnails -->
|
||||
<div class="post-files">
|
||||
<div class="post-files" id="post-files-<?php echo $this->object->getPrimaryKey(); ?>">
|
||||
<?php foreach ($files as $file) : ?>
|
||||
<?php if ($file->getMimeBaseType() == "image") : ?>
|
||||
<?php
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
<!-- Show List of all files -->
|
||||
<hr>
|
||||
<ul class="files" style="list-style: none; margin: 0;">
|
||||
<ul class="files" style="list-style: none; margin: 0;" id="files-<?php echo $this->object->getPrimaryKey(); ?>">
|
||||
<?php foreach ($files as $file) : ?>
|
||||
<li class="mime <?php echo HHtml::getMimeIconClassByExtension($file->getExtension()); ?>"><a
|
||||
href="<?php echo $file->getUrl(); ?>" target="_blank"><span
|
||||
|
@ -50,8 +50,8 @@
|
||||
$('#post_input_<?php echo $post->id; ?>_contenteditable').focus();
|
||||
|
||||
// Hide file area of post
|
||||
$('#post-<?php echo $post->id; ?>').find('.post-files').hide();
|
||||
$('#post-<?php echo $post->id; ?>').find('.files').hide();
|
||||
$('#post-files-<?php echo $post->id; ?>').hide();
|
||||
$('#files-<?php echo $post->id; ?>').hide();
|
||||
|
||||
// add attribute to manage the enter/submit event (prevent submit, if user press enter to insert an item from atwho plugin)
|
||||
$('#post_input_<?php echo $post->id; ?>_contenteditable').attr('data-submit', 'true');
|
||||
|
Loading…
x
Reference in New Issue
Block a user