| @@ -24,16 +24,16 @@ discard block | ||
| 24 | 24 | <?php if ($canWrite): ?> | 
| 25 | 25 | <li> | 
| 26 | 26 | <?php | 
| 27 | - echo AjaxButton::widget([ | |
| 28 | -									'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'), | |
| 29 | - 'ajaxOptions' => [ | |
| 30 | - 'type' => 'POST', | |
| 31 | -										'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_" . $comment->id . "').replaceWith(html); $('#comment_input_" . $comment->id . "_contenteditable').focus(); }"), | |
| 32 | - 'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), | |
| 33 | - ], | |
| 34 | - 'tag' => 'a' | |
| 35 | - ]); | |
| 36 | - ?> | |
| 27 | + echo AjaxButton::widget([ | |
| 28 | +                                    'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'), | |
| 29 | + 'ajaxOptions' => [ | |
| 30 | + 'type' => 'POST', | |
| 31 | +                                        'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_" . $comment->id . "').replaceWith(html); $('#comment_input_" . $comment->id . "_contenteditable').focus(); }"), | |
| 32 | + 'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), | |
| 33 | + ], | |
| 34 | + 'tag' => 'a' | |
| 35 | + ]); | |
| 36 | + ?> | |
| 37 | 37 | |
| 38 | 38 | </li> | 
| 39 | 39 | <?php endif; ?> | 
| @@ -43,18 +43,18 @@ discard block | ||
| 43 | 43 | |
| 44 | 44 | <!-- load modal confirm widget --> | 
| 45 | 45 | <?php | 
| 46 | - echo humhub\widgets\ModalConfirm::widget(array( | |
| 47 | - 'uniqueID' => 'modal_commentdelete_' . $comment->id, | |
| 48 | - 'linkOutput' => 'a', | |
| 49 | -									'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'), | |
| 50 | -									'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'), | |
| 51 | -									'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'), | |
| 52 | -									'buttonFalse' => Yii::t('CommentModule.widgets_views_showComment', 'Cancel'), | |
| 53 | -									'linkContent' => '<i class="fa fa-trash-o"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Delete'), | |
| 54 | - 'linkHref' => Url::to(["/comment/comment/delete", 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), | |
| 55 | -									'confirmJS' => "function(html) { $('#comment_" . $comment->id . "').slideUp(); }" | |
| 56 | - )); | |
| 57 | - ?> | |
| 46 | + echo humhub\widgets\ModalConfirm::widget(array( | |
| 47 | + 'uniqueID' => 'modal_commentdelete_' . $comment->id, | |
| 48 | + 'linkOutput' => 'a', | |
| 49 | +                                    'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'), | |
| 50 | +                                    'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'), | |
| 51 | +                                    'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'), | |
| 52 | +                                    'buttonFalse' => Yii::t('CommentModule.widgets_views_showComment', 'Cancel'), | |
| 53 | +                                    'linkContent' => '<i class="fa fa-trash-o"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Delete'), | |
| 54 | + 'linkHref' => Url::to(["/comment/comment/delete", 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), | |
| 55 | +                                    'confirmJS' => "function(html) { $('#comment_" . $comment->id . "').slideUp(); }" | |
| 56 | + )); | |
| 57 | + ?> | |
| 58 | 58 | </li> | 
| 59 | 59 | <?php endif; ?> | 
| 60 | 60 | </ul> |