diff --git a/views/bootstrap/class.ReviseDocument.php b/views/bootstrap/class.ReviseDocument.php
index 75061a4ba..3a3dbb6db 100644
--- a/views/bootstrap/class.ReviseDocument.php
+++ b/views/bootstrap/class.ReviseDocument.php
@@ -37,8 +37,8 @@ class SeedDMS_View_ReviseDocument extends SeedDMS_Bootstrap_Style {
function checkIndForm()
{
msg = new Array();
- if (document.form1.revisionStatus.value == "") msg.push("");
- if (document.form1.comment.value == "") msg.push("");
+ if (document.formind.revisionStatus.value == "") msg.push("");
+ if (document.formind.comment.value == "") msg.push("");
if (msg != "") {
noty({
text: msg.join('
'),
@@ -55,10 +55,10 @@ function checkIndForm()
}
function checkGrpForm()
{
- msg = "";
- if (document.form2.revisionGroup.value == "") msg += "\n";
- if (document.form2.revisionSatus.value == "") msg += "\n";
- if (document.form2.comment.value == "") msg += "\n";
+ msg = new Array();
+ if (document.formgrp.revisionGroup.value == "") msg.push("");
+ if (document.formgrp.revisionSatus.value == "") msg.push("");
+ if (document.formgrp.comment.value == "") msg.push("");
if (msg != "")
{
noty({
@@ -75,11 +75,11 @@ function checkGrpForm()
return true;
}
$(document).ready(function() {
- $('body').on('submit', '#form1', function(ev){
+ $('body').on('submit', '#formind', function(ev){
if(checkIndForm()) return;
event.preventDefault();
});
- $('body').on('submit', '#form2', function(ev){
+ $('body').on('submit', '#formgrp', function(ev){
if(checkGrpForm()) return;
event.preventDefault();
});
@@ -111,108 +111,56 @@ $(document).ready(function() {
$this->contentContainerStart();
// Display the Revision form.
- if ($revisionStatus['type'] == 0) {
- if($revisionStatus["status"]!=0) {
+ $revisiontype = ($revisionStatus['type'] == 0) ? 'ind' : 'grp';
+ if($revisionStatus["status"]!=0) {
- print "
".getMLText("status")." | "; - print "".getMLText("comment")." | "; - print "".getMLText("last_update")." | "; - print "
---|---|---|
"; - printRevisionStatusText($revisionStatus["status"]); - print " | "; - print "".htmlspecialchars($revisionStatus["comment"])." | "; - $indUser = $dms->getUser($revisionStatus["userID"]); - print "".$revisionStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ." | "; - print "