Преглед изворни кода

Fixes issue where saving a non-modified comment kept the edit window open.

Now irrespective of the whether the comment has been modified we are going to go back to the view mode.

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
tags/v14.0.0beta1
Abijeet пре 6 година
родитељ
комит
facd1cae2f
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6
    0
      apps/comments/js/commentstabview.js

+ 6
- 0
apps/comments/js/commentstabview.js Прегледај датотеку

@@ -668,6 +668,12 @@
}, {
success: function(model) {
self._onSubmitSuccess(model, $form);
if(model.get('message').trim() === model.previous('message').trim()) {
// model change event doesn't trigger, manually remove the row.
var $row = $form.closest('.comment');
$row.data('commentEl').removeClass('hidden');
$row.remove();
}
},
error: function() {
self._onSubmitError($form, commentId);

Loading…
Откажи
Сачувај