Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2017-07-13 18:08:56 +02:00
commit b855389965
7 changed files with 77 additions and 124 deletions

View File

@ -12,7 +12,7 @@
<email>uwe@steinmann.cx</email> <email>uwe@steinmann.cx</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2017-03-23</date> <date>2017-07-13</date>
<time>06:34:50</time> <time>06:34:50</time>
<version> <version>
<release>6.0.1</release> <release>6.0.1</release>
@ -1189,7 +1189,7 @@ SeedDMS_Core_DMS::getDuplicateDocumentContent() returns complete document
</notes> </notes>
</release> </release>
<release> <release>
<date>2017-03-23</date> <date>2017-07-11</date>
<time>06:38:12</time> <time>06:38:12</time>
<version> <version>
<release>4.3.35</release> <release>4.3.35</release>
@ -1204,6 +1204,21 @@ SeedDMS_Core_DMS::getDuplicateDocumentContent() returns complete document
do not sort some temporary tables anymore, because it causes an error in mysql if sql_mode=only_full_group_by is set do not sort some temporary tables anymore, because it causes an error in mysql if sql_mode=only_full_group_by is set
</notes> </notes>
</release> </release>
<release>
<date>2017-03-22</date>
<time>06:38:12</time>
<version>
<release>4.3.36</release>
<api>4.3.36</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
</notes>
</release>
<release> <release>
<date>2016-01-22</date> <date>2016-01-22</date>
<time>14:34:58</time> <time>14:34:58</time>
@ -1398,6 +1413,21 @@ all sql statements can be logged to a file
do not sort some temporary tables anymore, because it causes an error in mysql if sql_mode=only_full_group_by is set do not sort some temporary tables anymore, because it causes an error in mysql if sql_mode=only_full_group_by is set
</notes> </notes>
</release> </release>
<release>
<date>2017-07-13</date>
<time>07:07:02</time>
<version>
<release>5.0.13</release>
<api>5.0.13</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
</notes>
</release>
<release> <release>
<date>2017-02-20</date> <date>2017-02-20</date>
<time>07:07:02</time> <time>07:07:02</time>
@ -1453,6 +1483,21 @@ if the owner tries to access them
- Add hook onAttributeValidate - Add hook onAttributeValidate
</notes> </notes>
</release> </release>
<release>
<date>2017-07-13</date>
<time>07:07:02</time>
<version>
<release>5.1.3</release>
<api>5.1.3</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
</notes>
</release>
<release> <release>
<date>2017-02-28</date> <date>2017-02-28</date>
<time>06:34:50</time> <time>06:34:50</time>

View File

@ -127,6 +127,8 @@ if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name
$user->setImage($_FILES["userfile"]["tmp_name"], $_FILES["userfile"]["type"]); $user->setImage($_FILES["userfile"]["tmp_name"], $_FILES["userfile"]["type"]);
} }
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_save_user_data')));
add_log_line("?user=".$user->getLogin()); add_log_line("?user=".$user->getLogin());
header("Location:../out/out.MyAccount.php"); header("Location:../out/out.MyAccount.php");

View File

@ -68,6 +68,12 @@ $(document).ready( function() {
timeout: 1500, timeout: 1500,
}); });
}, },
highlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(validClass).addClass(errorClass);
},
unhighlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(errorClass).addClass(validClass);
},
<?php <?php
if($enablelargefileupload) { if($enablelargefileupload) {
?> ?>

View File

@ -35,37 +35,7 @@ class SeedDMS_View_AddSubFolder extends SeedDMS_Bootstrap_Style {
$strictformcheck = $this->params['strictformcheck']; $strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript'); header('Content-Type: application/javascript');
?> ?>
function checkForm()
{
msg = new Array();
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
<?php
if ($strictformcheck) {
?>
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
<?php
}
?>
if (msg != "") {
noty({
text: msg.join('<br />'),
type: 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
_timeout: 1500,
});
return false;
}
else
return true;
}
$(document).ready( function() { $(document).ready( function() {
/* $('body').on('submit', '#form1', function(ev){
if(checkForm()) return;
ev.preventDefault();
});
*/
$("#form1").validate({ $("#form1").validate({
invalidHandler: function(e, validator) { invalidHandler: function(e, validator) {
noty({ noty({
@ -77,6 +47,12 @@ $(document).ready( function() {
timeout: 1500, timeout: 1500,
}); });
}, },
highlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(validClass).addClass(errorClass);
},
unhighlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(errorClass).addClass(validClass);
},
messages: { messages: {
name: "<?php printMLText("js_no_name");?>", name: "<?php printMLText("js_no_name");?>",
comment: "<?php printMLText("js_no_comment");?>" comment: "<?php printMLText("js_no_comment");?>"

View File

@ -36,41 +36,7 @@ class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style {
header('Content-Type: application/javascript'); header('Content-Type: application/javascript');
$this->printKeywordChooserJs('form1'); $this->printKeywordChooserJs('form1');
?> ?>
function checkForm()
{
msg = new Array();
if ($("#name").val() == "") msg.push("<?php printMLText("js_no_name");?>");
<?php
if ($strictformcheck) {
?>
if ($("#comment").val() == "") msg.push("<?php printMLText("js_no_comment");?>");
if ($("#keywords").val() == "") msg.push("<?php printMLText("js_no_keywords");?>");
<?php
}
?>
if (msg != "")
{
noty({
text: msg.join('<br />'),
type: 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
_timeout: 1500,
});
return false;
}
else
return true;
}
$(document).ready( function() { $(document).ready( function() {
/*
$('body').on('submit', '#form1', function(ev){
if(checkForm()) return;
ev.preventDefault();
});
*/
$("#form1").validate({ $("#form1").validate({
invalidHandler: function(e, validator) { invalidHandler: function(e, validator) {
noty({ noty({

View File

@ -35,37 +35,7 @@ class SeedDMS_View_EditFolder extends SeedDMS_Bootstrap_Style {
$strictformcheck = $this->params['strictformcheck']; $strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript; charset=UTF-8'); header('Content-Type: application/javascript; charset=UTF-8');
?> ?>
function checkForm()
{
msg = new Array();
if (document.form1.name.value == "") msg.push("<?php printMLText("js_no_name");?>");
<?php
if ($strictformcheck) {
?>
if (document.form1.comment.value == "") msg.push("<?php printMLText("js_no_comment");?>");
<?php
}
?>
if (msg != "") {
noty({
text: msg.join('<br />'),
type: 'error',
dismissQueue: true,
layout: 'topRight',
theme: 'defaultTheme',
});
return false;
}
else
return true;
}
$(document).ready(function() { $(document).ready(function() {
/*
$('body').on('submit', '#form1', function(ev){
if(checkForm()) return;
ev.preventDefault();
});
*/
$("#form1").validate({ $("#form1").validate({
invalidHandler: function(e, validator) { invalidHandler: function(e, validator) {
noty({ noty({
@ -77,6 +47,12 @@ $(document).ready(function() {
timeout: 1500, timeout: 1500,
}); });
}, },
highlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(validClass).addClass(errorClass);
},
unhighlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(errorClass).addClass(validClass);
},
messages: { messages: {
name: "<?php printMLText("js_no_name");?>", name: "<?php printMLText("js_no_name");?>",
comment: "<?php printMLText("js_no_comment");?>" comment: "<?php printMLText("js_no_comment");?>"

View File

@ -34,35 +34,7 @@ class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */ function js() { /* {{{ */
header('Content-Type: application/javascript'); header('Content-Type: application/javascript');
?> ?>
function checkForm()
{
msg = new Array();
if ($("#pwd").val() != $("#pwdconf").val()) msg.push("<?php printMLText("js_pwd_not_conf");?>");
if ($("#fullname").val() == "") msg.push("<?php printMLText("js_no_name");?>");
if ($("#email").val() == "") 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
return true;
}
$(document).ready( function() { $(document).ready( function() {
/*
$('body').on('submit', '#form', function(ev){
if(checkForm()) return;
ev.preventDefault();
});
*/
$("#form").validate({ $("#form").validate({
invalidHandler: function(e, validator) { invalidHandler: function(e, validator) {
noty({ noty({
@ -74,7 +46,16 @@ $(document).ready( function() {
timeout: 1500, timeout: 1500,
}); });
}, },
highlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(validClass).addClass(errorClass);
},
unhighlight: function(e, errorClass, validClass) {
$(e).parent().parent().removeClass(errorClass).addClass(validClass);
},
rules: { rules: {
currentpwd: {
required: true
},
fullname: { fullname: {
required: true required: true
}, },
@ -87,6 +68,7 @@ $(document).ready( function() {
} }
}, },
messages: { messages: {
currentpwd: "<?php printMLText("js_no_currentpwd");?>",
fullname: "<?php printMLText("js_no_name");?>", fullname: "<?php printMLText("js_no_name");?>",
email: { email: {
required: "<?php printMLText("js_no_email");?>", required: "<?php printMLText("js_no_email");?>",