mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
use noty instead of alert()
This commit is contained in:
parent
260ee5e91b
commit
0754b9ba1d
|
@ -53,28 +53,34 @@ class SeedDMS_View_AddDocument extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
//if (document.form1.userfile[].value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if(!document.form1.name.disabled){
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
}
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (document.form1.keywords.value == "") msg.push("<?php printMLText("js_no_keywords");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != ""){
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
function addFiles()
|
||||
{
|
||||
var li = document.createElement('li');
|
||||
|
|
|
@ -46,18 +46,24 @@ class SeedDMS_View_AddEvent extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array();
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,19 +48,26 @@ class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array();
|
||||
if (document.form1.userfile.value == "") msg.push("<?php printMLText("js_no_file");?>");
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -47,18 +47,24 @@ class SeedDMS_View_AddSubFolder extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array();
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -56,12 +56,18 @@ class SeedDMS_View_ApproveDocument extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkIndForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.approvalStatus.value == "") msg += "<?php printMLText("js_no_approval_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.approvalStatus.value == "") msg.push("<?php printMLText("js_no_approval_status");?>");
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
@ -69,13 +75,20 @@ function checkIndForm()
|
|||
}
|
||||
function checkGrpForm()
|
||||
{
|
||||
msg = "";
|
||||
// if (document.form1.approvalGroup.value == "") msg += "<?php printMLText("js_no_approval_group");?>\n";
|
||||
if (document.form1.approvalStatus.value == "") msg += "<?php printMLText("js_no_approval_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
msg = new Array();
|
||||
// if (document.form1.approvalGroup.value == "") msg.push("<?php printMLText("js_no_approval_group");?>");
|
||||
if (document.form1.approvalStatus.value == "") msg.push("<?php printMLText("js_no_approval_status");?>");
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -59,15 +59,14 @@ class SeedDMS_View_DocumentAccess extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
msg.push("<?php printMLText("js_select_user_or_group");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
//alert(msg);
|
||||
noty({
|
||||
text: msg,
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
|
|
|
@ -49,13 +49,19 @@ class SeedDMS_View_DocumentNotify extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg.push("<?php printMLText("js_select_user_or_group");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,17 +48,24 @@ class SeedDMS_View_EditComment extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else return true;
|
||||
|
|
|
@ -48,19 +48,26 @@ class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array();
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>)";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (document.form1.keywords.value == "") msg.push("<?php printMLText("js_no_keywords");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,18 +48,24 @@ class SeedDMS_View_EditEvent extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array()
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,18 +48,24 @@ class SeedDMS_View_EditFolder extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
msg = new Array();
|
||||
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -49,14 +49,20 @@ class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.pwd.value != document.form1.pwdconf.value) msg += "<?php printMLText("js_pwd_not_conf");?>\n";
|
||||
if (document.form1.fullname.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (document.form1.email.value == "") msg += "<?php printMLText("js_no_email");?>\n";
|
||||
// if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.pwd.value != document.form1.pwdconf.value) msg.push("<?php printMLText("js_pwd_not_conf");?>");
|
||||
if (document.form1.fullname.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
if (document.form1.email.value == "") msg.push("<?php printMLText("js_no_email");?>");
|
||||
// if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -56,13 +56,19 @@ class SeedDMS_View_FolderAccess extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array()
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg.push("<?php printMLText("js_select_user_or_group");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -51,13 +51,19 @@ class SeedDMS_View_FolderNotify extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg.push("<?php printMLText("js_select_user_or_group");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,20 +48,27 @@ class SeedDMS_View_GroupMgr extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
|
||||
function checkForm1(num) {
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
eval("var formObj = document.form" + num + "_1;");
|
||||
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (formObj.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (formObj.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (formObj.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
@ -76,7 +83,14 @@ function checkForm2(num) {
|
|||
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg,
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -45,12 +45,18 @@ class SeedDMS_View_Login extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.login.value == "") msg += "<?php printMLText("js_no_login");?>\n";
|
||||
if (document.form1.pwd.value == "") msg += "<?php printMLText("js_no_pwd");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array()
|
||||
if (document.form1.login.value == "") msg.push("<?php printMLText("js_no_login");?>");
|
||||
if (document.form1.pwd.value == "") msg.push("<?php printMLText("js_no_pwd");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -53,12 +53,18 @@ class SeedDMS_View_OverrideContentStatus extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.overrideStatus.value == "") msg += "<?php printMLText("js_no_override_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.overrideStatus.value == "") msg.push("<?php printMLText("js_no_override_status");?>");
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -49,11 +49,17 @@ class SeedDMS_View_ReturnFromSubWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -55,12 +55,18 @@ class SeedDMS_View_ReviewDocument extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkIndForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.reviewStatus.value == "") msg += "<?php printMLText("js_no_review_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.reviewStatus.value == "") msg.push("<?php printMLText("js_no_review_status");?>");
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -49,17 +49,23 @@ class SeedDMS_View_SearchForm extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array()
|
||||
if (document.form1.query.value == "")
|
||||
{
|
||||
if (!document.form1.creationdate.checked && !document.form1.lastupdate.checked &&
|
||||
!document.form1.pendingReview.checked && !document.form1.pendingApproval.checked)
|
||||
msg += "<?php printMLText("js_no_query");?>\n";
|
||||
msg.push("<?php printMLText("js_no_query");?>");
|
||||
}
|
||||
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -49,11 +49,17 @@ class SeedDMS_View_TriggerWorkflow extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
msg = new Array();
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "") {
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -55,22 +55,29 @@ class SeedDMS_View_UpdateDocument extends SeedDMS_Bootstrap_Style {
|
|||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
<?php if($dropfolderdir) { ?>
|
||||
if (document.form1.userfile.value == "" && document.form1.dropfolderfileform1.value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
if (document.form1.userfile.value == "" && document.form1.dropfolderfileform1.value == "") msg.push("<?php printMLText("js_no_file");?>");
|
||||
<?php } else { ?>
|
||||
if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
if (document.form1.userfile.value == "") msg.push("<?php printMLText("js_no_file");?>");
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -53,18 +53,25 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
function checkForm(num)
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
eval("var formObj = document.form" + num + ";");
|
||||
|
||||
if (formObj.login.value == "") msg += "<?php printMLText("js_no_login");?>\n";
|
||||
if ((num == '0') && (formObj.pwd.value == "")) msg += "<?php printMLText("js_no_pwd");?>\n";
|
||||
if ((formObj.pwd.value != formObj.pwdconf.value)&&(formObj.pwd.value != "" )&&(formObj.pwd.value != "" )) msg += "<?php printMLText("js_pwd_not_conf");?>\n";
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (formObj.email.value == "") msg += "<?php printMLText("js_no_email");?>\n";
|
||||
//if (formObj.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (formObj.login.value == "") msg.push("<?php printMLText("js_no_login");?>");
|
||||
if ((num == '0') && (formObj.pwd.value == "")) msg.push("<?php printMLText("js_no_pwd");?>");
|
||||
if ((formObj.pwd.value != formObj.pwdconf.value)&&(formObj.pwd.value != "" )&&(formObj.pwd.value != "" )) msg.push("<?php printMLText("js_pwd_not_conf");?>");
|
||||
if (formObj.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
if (formObj.email.value == "") msg.push("<?php printMLText("js_no_email");?>");
|
||||
//if (formObj.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,13 +48,20 @@ class SeedDMS_View_WorkflowActionsMgr extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
function checkForm(num)
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array()
|
||||
eval("var formObj = document.form" + num + ";");
|
||||
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (formObj.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,13 +48,20 @@ class SeedDMS_View_WorkflowMgr extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
function checkForm(num)
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
eval("var formObj = document.form" + num + ";");
|
||||
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (formObj.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,13 +48,20 @@ class SeedDMS_View_WorkflowStatesMgr extends SeedDMS_Bootstrap_Style {
|
|||
|
||||
function checkForm(num)
|
||||
{
|
||||
msg = "";
|
||||
msg = new Array();
|
||||
eval("var formObj = document.form" + num + ";");
|
||||
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (formObj.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
noty({
|
||||
text: msg.join('<br />'),
|
||||
type: 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
_timeout: 1500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user