]> BookStack Code Mirror - bookstack/commitdiff
#47 - Fixes a few issues with the code.
authorAbijeet <redacted>
Sat, 10 Jun 2017 17:25:36 +0000 (22:55 +0530)
committerAbijeet <redacted>
Sat, 10 Jun 2017 17:25:36 +0000 (22:55 +0530)
resources/assets/js/controllers.js
resources/lang/es/entities.php
resources/views/comments/comment-reply.blade.php

index c1bfd441f649d55c728a6cf7302296ed8a195f5b..aebde8da4136fcd7bc2f293e7198742661fa90bd 100644 (file)
@@ -272,7 +272,6 @@ module.exports = function (ngApp, events) {
         $scope.draftsEnabled = $attrs.draftsEnabled === 'true';
         $scope.isUpdateDraft = Number($attrs.pageUpdateDraft) === 1;
         $scope.isNewPageDraft = Number($attrs.pageNewDraft) === 1;
-        $scope.commentsLoaded = false;
 
         // Set initial header draft text
         if ($scope.isUpdateDraft || $scope.isNewPageDraft) {
@@ -687,7 +686,6 @@ module.exports = function (ngApp, events) {
         const MarkdownIt = require("markdown-it");
         const md = new MarkdownIt({html: true});
         let vm = this;
-        $scope.errors = {};
 
         vm.saveComment = function () {
             let pageId = $scope.comment.pageId || $scope.pageId;
index aadfa2324d1ff95d9e0780d1ce23a8a96980375b..2ca55a786ddbbdc8c77d2101f11e0667e4c06b76 100644 (file)
@@ -233,7 +233,7 @@ return [
     'comment_created' => 'Comentario añadido',
     'comment_updated' => 'Comentario actualizado',
     'comment_deleted' => 'Comentario eliminado',
-    'comment_updated_text' => 'Actualizado hace :updateDiff minutos por',
+    'comment_updated_text' => 'Actualizado hace :updateDiff por',
     'comment_delete_confirm' => 'Esto eliminará el contenido del comentario. ¿Estás seguro de que quieres eliminar este comentario?',
     'comment_create' => 'Creado'
 ];
index 9c698bf0d6c1c5046255c15118e4064584b71e0b..02535341c00b17c5160191f4a59cb017829a6d8c 100644 (file)
@@ -3,7 +3,7 @@
         <textarea name="markdown" rows="3" ng-model="comment.text" placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
         <input type="hidden" ng-model="comment.pageId" name="comment.pageId" value="{{$pageId}}" ng-init="comment.pageId = {{$pageId }}">
         <button type="button" ng-if="::(isReply || isEdit)" class="button muted" ng-click="closeBox()">{{ trans('entities.comment_cancel') }}</button>
-        <button type="submit" class="button pos" ng-click="vm.saveComment(isReply)">{{ trans('entities.comment_save') }}</button>
+        <button type="submit" class="button pos" ng-click="vm.saveComment()">{{ trans('entities.comment_save') }}</button>
     </form>
 </div>