Fixed some usability issues during content editing

This commit is contained in:
andystrobel 2014-10-21 20:13:09 +02:00
parent bc4fb665f7
commit 99b61a6c83
5 changed files with 9 additions and 7 deletions

View File

@ -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');

View File

@ -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;
}

View File

@ -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>

View File

@ -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

View File

@ -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');