endreviewdate: \''.util_html_encode($enddate).'\',
serialid: '.$this->getSerialID().',
mandatoryusers: '.json_encode($mandatoryUsers).',
- optionalusers: '.json_encode($optionalUsers).',})'), true);
+ optionalusers: '.json_encode($optionalUsers).',
+ docid: '.$this->Document->getID().',
+ groupId: '.$this->Document->Group->getID().'})'), true);
} else {
return util_make_link('#', $HTML->getClosedTicketPic(_('Complete this review'), 'completereview'),
array('id' => 'review_action_complete', 'onclick' => 'javascript:controllerListFile.toggleEditReviewView({review: '.$this->getID().', title: \''.addslashes($this->getTitle()).'\',
serialid: '.$this->getSerialID().',
mandatoryusers: '.json_encode($mandatoryUsers).',
optionalusers: '.json_encode($optionalUsers).',
+ docid: '.$this->Document->getID().',
+ groupId: '.$this->Document->Group->getID().',
complete: 1})'), true);
-
}
}
jQuery('#tr-mandatory-reviewers').hide();
jQuery('#tr-optional-reviewers').hide();
jQuery('#review_complete').val(1);
- jQuery.getJSON(this.docparams.docManURL + '/?group_id=' + this.docparams.groupId + '&action=getdocreviewcompleteform&docid='+this.docparams.id+'&revid='+this.review.review , jQuery.proxy(function(data){
+ jQuery.getJSON(this.listfileparams.docManURL + '/?group_id=' + this.review.groupId + '&action=getdocreviewcompleteform&docid='+this.review.docid+'&revid='+this.review.review , jQuery.proxy(function(data){
if (typeof data.html != 'undefined') {
jQuery('#editfile-completedreview').prepend(data.html);
}
jQuery('#review-select-mandatory-users').gentleSelect({columns: 3, itemWidth: 150});
jQuery('#review-select-optional-users').gentleSelect({columns: 3, itemWidth: 150});
}
- jQuery.getJSON(this.docparams.docManURL + '/?group_id=' + this.docparams.groupId + '&action=getdocreviewuserstatus&docid='+this.docparams.id+'&revid='+this.review.review , jQuery.proxy(function(data){
+ jQuery.getJSON(this.listfileparams.docManURL + '/?group_id=' + this.review.groupId + '&action=getdocreviewuserstatus&docid='+this.review.docid+'&revid='+this.review.review , jQuery.proxy(function(data){
if (typeof data.html != 'undefined') {
jQuery('#editfile-userstatusreview').prepend(data.html);
}