diff --git a/module/story/control.php b/module/story/control.php index 11d75168ca..4a150cc562 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1130,8 +1130,8 @@ class story extends control if($product->type != 'normal') $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$product->type]); - $reviewers = $this->story->getReviewerPairs($storyID, $story->version); - $reviewedBy = trim($story->reviewedBy, ','); + $reviewers = $this->story->getReviewerPairs($storyID, $story->version); + $reviewedBy = trim($story->reviewedBy, ','); $this->executeHooks($storyID); diff --git a/module/story/js/change.js b/module/story/js/change.js index df0c4cbd8e..bdab28bdaa 100644 --- a/module/story/js/change.js +++ b/module/story/js/change.js @@ -3,7 +3,6 @@ $(function() $('#needNotReview').on('change', function() { $('#reviewer').attr('disabled', $(this).is(':checked') ? 'disabled' : null).trigger('chosen:updated'); - getStatus('change', "storyID=" + storyID + ",changed=" + changed + ",needNotReview=" + ($(this).prop('checked') ? 1 : 0)); if($(this).is(':checked')) { $('.input-group-addon').removeClass('required'); @@ -15,26 +14,5 @@ $(function() }); $('#needNotReview').change(); - $specBox = $('#spec').closest('td').find('.ke-container iframe.ke-edit-iframe').contents().find('.article-content'); - $verifyBox = $('#verify').closest('td').find('.ke-container iframe.ke-edit-iframe').contents().find('.article-content'); - $('#title').change(function() - { - newChanged = ($(this).val() != oldStoryTitle || $specBox.html() != oldStorySpec || $verifyBox.html() != oldStoryVerify || $('.file-input-list .file-input.normal').length > 0) ? 1 : 0; - if(changed != newChanged) - { - changed = newChanged; - getStatus('change', "storyID=" + storyID + ",changed=" + changed + ",needNotReview=" + ($('#needNotReview').prop('checked') ? 1 : 0)); - } - }); - $('.ke-container iframe.ke-edit-iframe').contents().find('.article-content').keyup(function() - { - newChanged = ($('#title').val() != oldStoryTitle || $specBox.html() != oldStorySpec || $verifyBox.html() != oldStoryVerify || $('.file-input-list .file-input.normal').length > 0) ? 1 : 0; - if(changed != newChanged) - { - changed = newChanged; - getStatus('change', "storyID=" + storyID + ",changed=" + changed + ",needNotReview=" + ($('#needNotReview').prop('checked') ? 1 : 0)); - } - }); - if($('.tabs .tab-content .tab-pane.active').children().length == 0) $('.tabs .nav-tabs li.active').css('border-bottom', '1px solid #ccc'); });