diff --git a/Makefile b/Makefile
index 49d8105bd..e5e9fabd1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=5.1.2
+VERSION=5.1.3
SRC=CHANGELOG inc conf utils index.php languages views op out controllers doc styles TODO LICENSE webdav install restapi pdfviewer
# webapp
diff --git a/SeedDMS_Core/Core/inc.ClassDMS.php b/SeedDMS_Core/Core/inc.ClassDMS.php
index 1fa18ba40..ccb1eacca 100644
--- a/SeedDMS_Core/Core/inc.ClassDMS.php
+++ b/SeedDMS_Core/Core/inc.ClassDMS.php
@@ -363,7 +363,7 @@ class SeedDMS_Core_DMS {
$this->callbacks = array();
$this->version = '@package_version@';
if($this->version[0] == '@')
- $this->version = '5.1.2';
+ $this->version = '5.1.3';
} /* }}} */
/**
diff --git a/SeedDMS_Core/package.xml b/SeedDMS_Core/package.xml
index b127665a6..f85f8bd08 100644
--- a/SeedDMS_Core/package.xml
+++ b/SeedDMS_Core/package.xml
@@ -1182,7 +1182,7 @@ SeedDMS_Core_DMS::getDuplicateDocumentContent() returns complete document
- 2017-03-23
+ 2017-07-11
4.3.35
@@ -1197,6 +1197,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
+
+ 2017-03-22
+
+
+ 4.3.36
+ 4.3.36
+
+
+ stable
+ stable
+
+ GPL License
+
+
+
2016-01-22
diff --git a/inc/inc.Version.php b/inc/inc.Version.php
index 9824e5b6e..8abf18de6 100644
--- a/inc/inc.Version.php
+++ b/inc/inc.Version.php
@@ -20,7 +20,7 @@
class SeedDMS_Version {
- public $_number = "5.1.2";
+ public $_number = "5.1.3";
private $_string = "SeedDMS";
function __construct() {
diff --git a/install/install.php b/install/install.php
index 335bd3835..a5f58e13c 100644
--- a/install/install.php
+++ b/install/install.php
@@ -123,7 +123,7 @@ function fileExistsInIncludePath($file) { /* {{{ */
* Load default settings + set
*/
define("SEEDDMS_INSTALL", "on");
-define("SEEDDMS_VERSION", "5.1.2");
+define("SEEDDMS_VERSION", "5.1.3");
require_once('../inc/inc.ClassSettings.php');
diff --git a/op/op.EditUserData.php b/op/op.EditUserData.php
index f390613de..fec4ad607 100644
--- a/op/op.EditUserData.php
+++ b/op/op.EditUserData.php
@@ -127,6 +127,8 @@ if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name
$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());
header("Location:../out/out.MyAccount.php");
diff --git a/views/bootstrap/class.AddFile.php b/views/bootstrap/class.AddFile.php
index fc6298f14..9414e19b7 100644
--- a/views/bootstrap/class.AddFile.php
+++ b/views/bootstrap/class.AddFile.php
@@ -68,6 +68,12 @@ $(document).ready( function() {
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);
+ },
diff --git a/views/bootstrap/class.AddSubFolder.php b/views/bootstrap/class.AddSubFolder.php
index 05c7fb959..9202a2282 100644
--- a/views/bootstrap/class.AddSubFolder.php
+++ b/views/bootstrap/class.AddSubFolder.php
@@ -35,37 +35,7 @@ class SeedDMS_View_AddSubFolder extends SeedDMS_Bootstrap_Style {
$strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript');
?>
-function checkForm()
-{
- msg = new Array();
- if (document.form1.name.value == "") msg.push("");
-
- if (document.form1.comment.value == "") msg.push("");
-
- if (msg != "") {
- noty({
- text: msg.join('
'),
- type: 'error',
- dismissQueue: true,
- layout: 'topRight',
- theme: 'defaultTheme',
- _timeout: 1500,
- });
- return false;
- }
- else
- return true;
-}
$(document).ready( function() {
-/* $('body').on('submit', '#form1', function(ev){
- if(checkForm()) return;
- ev.preventDefault();
- });
-*/
$("#form1").validate({
invalidHandler: function(e, validator) {
noty({
@@ -77,6 +47,12 @@ $(document).ready( function() {
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: {
name: "",
comment: ""
diff --git a/views/bootstrap/class.EditDocument.php b/views/bootstrap/class.EditDocument.php
index 2e43087f8..c3199197b 100644
--- a/views/bootstrap/class.EditDocument.php
+++ b/views/bootstrap/class.EditDocument.php
@@ -36,41 +36,7 @@ class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style {
header('Content-Type: application/javascript');
$this->printKeywordChooserJs('form1');
?>
-function checkForm()
-{
- msg = new Array();
- if ($("#name").val() == "") msg.push("");
-
- if ($("#comment").val() == "") msg.push("");
- if ($("#keywords").val() == "") msg.push("");
-
- if (msg != "")
- {
- noty({
- text: msg.join('
'),
- type: 'error',
- dismissQueue: true,
- layout: 'topRight',
- theme: 'defaultTheme',
- _timeout: 1500,
- });
- return false;
- }
- else
- return true;
-}
-
$(document).ready( function() {
-/*
- $('body').on('submit', '#form1', function(ev){
- if(checkForm()) return;
- ev.preventDefault();
- });
-*/
$("#form1").validate({
invalidHandler: function(e, validator) {
noty({
diff --git a/views/bootstrap/class.EditFolder.php b/views/bootstrap/class.EditFolder.php
index 2da21e14b..d5c71f9ed 100644
--- a/views/bootstrap/class.EditFolder.php
+++ b/views/bootstrap/class.EditFolder.php
@@ -35,37 +35,7 @@ class SeedDMS_View_EditFolder extends SeedDMS_Bootstrap_Style {
$strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript; charset=UTF-8');
?>
-function checkForm()
-{
- msg = new Array();
- if (document.form1.name.value == "") msg.push("");
-
- if (document.form1.comment.value == "") msg.push("");
-
- if (msg != "") {
- noty({
- text: msg.join('
'),
- type: 'error',
- dismissQueue: true,
- layout: 'topRight',
- theme: 'defaultTheme',
- });
- return false;
- }
- else
- return true;
-}
$(document).ready(function() {
-/*
- $('body').on('submit', '#form1', function(ev){
- if(checkForm()) return;
- ev.preventDefault();
- });
-*/
$("#form1").validate({
invalidHandler: function(e, validator) {
noty({
@@ -77,6 +47,12 @@ $(document).ready(function() {
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: {
name: "",
comment: ""
diff --git a/views/bootstrap/class.EditUserData.php b/views/bootstrap/class.EditUserData.php
index af6ccd32a..aea65afa6 100644
--- a/views/bootstrap/class.EditUserData.php
+++ b/views/bootstrap/class.EditUserData.php
@@ -34,35 +34,7 @@ class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
-function checkForm()
-{
- msg = new Array();
- if ($("#pwd").val() != $("#pwdconf").val()) msg.push("");
- if ($("#fullname").val() == "") msg.push("");
- if ($("#email").val() == "") msg.push("");
-// if (document.form1.comment.value == "") msg.push("");
- if (msg != "") {
- noty({
- text: msg.join('
'),
- type: 'error',
- dismissQueue: true,
- layout: 'topRight',
- theme: 'defaultTheme',
- _timeout: 1500,
- });
- return false;
- }
- else
- return true;
-}
-
$(document).ready( function() {
-/*
- $('body').on('submit', '#form', function(ev){
- if(checkForm()) return;
- ev.preventDefault();
- });
-*/
$("#form").validate({
invalidHandler: function(e, validator) {
noty({
@@ -74,7 +46,16 @@ $(document).ready( function() {
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: {
+ currentpwd: {
+ required: true
+ },
fullname: {
required: true
},
@@ -87,6 +68,7 @@ $(document).ready( function() {
}
},
messages: {
+ currentpwd: "",
fullname: "",
email: {
required: "",