diff --git a/views/bootstrap/class.GroupMgr.php b/views/bootstrap/class.GroupMgr.php
index 514a086f9..505e66e07 100644
--- a/views/bootstrap/class.GroupMgr.php
+++ b/views/bootstrap/class.GroupMgr.php
@@ -31,13 +31,117 @@ require_once("class.Bootstrap.php");
*/
class SeedDMS_View_GroupMgr extends SeedDMS_Bootstrap_Style {
+ function css() { /* {{{ */
+ $selgroup = $this->params['selgroup'];
+ $strictformcheck = $this->params['strictformcheck'];
+
+ header("Content-type: text/javascript");
+?>
+function checkForm1() {
+ msg = new Array();
+
+ if($("#name").val() == "") msg.push("");
+
+ if($("#comment").val() == "") msg.push("");
+
+ if (msg != "") {
+ noty({
+ text: msg.join('
'),
+ type: 'error',
+ dismissQueue: true,
+ layout: 'topRight',
+ theme: 'defaultTheme',
+ _timeout: 1500,
+ });
+ return false;
+ } else
+ return true;
+}
+
+function checkForm2() {
+ msg = "";
+
+ if($("#userid").val() == -1) msg += "\n";
+
+ if (msg != "") {
+ noty({
+ text: msg,
+ type: 'error',
+ dismissQueue: true,
+ layout: 'topRight',
+ theme: 'defaultTheme',
+ _timeout: 1500,
+ });
+ return false;
+ } else
+ return true;
+ }
+
+$(document).ready( function() {
+ $('body').on('submit', '#form_1', function(ev){
+ if(checkForm1())
+ return;
+ event.preventDefault();
+ });
+
+ $('body').on('submit', '#form_2', function(ev){
+ if(checkForm2())
+ return;
+ event.preventDefault();
+ });
+
+ $( "#selector" ).change(function() {
+ $('div.ajax').trigger('update', {groupid: $(this).val()});
+ });
+});
+params['dms'];
$selgroup = $this->params['selgroup'];
+ $cachedir = $this->params['cachedir'];
+ $previewwidth = $this->params['previewWidthList'];
if($selgroup) {
+ $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth);
$this->contentHeading(getMLText("group_info"));
echo "
";
+ if($previewer->hasPreview($latestContent)) {
+ print " | ";
+ print "getID()."¤ttab=revapp\">".htmlspecialchars($document->getName())." | "; + echo "
".getMLText('pending_reviews')." | ".$i." |
".getMLText('pending_approvals')." | ".$i." |