diff --git a/CHANGELOG b/CHANGELOG index 6087efc00..53dd80984 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -152,6 +152,8 @@ - do not list documents in task list, if a previous version is still in workflow. Take only the lastest version into account (Closes: #405) - fix moving documents in clipboard into folder by drag&drop +- clipboard can be pinned to fixed position +- use standard output for document rows on MyDocuments page -------------------------------------------------------------------------------- Changes in version 5.1.16 diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 6c7774367..812eddf58 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -666,6 +666,13 @@ switch($command) { exit; } + $maxuploadsize = SeedDMS_Core_File::parse_filesize($settings->_maxUploadSize); + if ($maxuploadsize && $_FILES["userfile"]["size"] > $maxuploadsize) { + header('Content-Type: application/json'); + echo json_encode(array('success'=>false, 'message'=>getMLText("uploading_maxsize"))); + exit; + } + $userfiletmp = $_FILES["userfile"]["tmp_name"]; $userfiletype = $_FILES["userfile"]["type"]; $userfilename = $_FILES["userfile"]["name"]; diff --git a/styles/bootstrap/application.css b/styles/bootstrap/application.css index 7427e89c7..aac713b83 100644 --- a/styles/bootstrap/application.css +++ b/styles/bootstrap/application.css @@ -60,6 +60,10 @@ ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover { font-weight: bold; } +legend > span { + float: right; +} + td.today { background-color: rgb(255, 200, 0); } @@ -158,6 +162,21 @@ div.splash { display: none; } +div.clipboard-container { + position: fixed; + left: 10px; + top: 40px; + width: 29.8%; + background: white; + border: 1px solid #d4d4d4; + border-radius: 5px; + padding: 10px; + height: 500px; + margin: 10px; + overflow-y: auto; + overflow-x: hidden; +} + div.statusbar-container { display: none; position: fixed; diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 8761a46e9..894a5394f 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -166,6 +166,12 @@ $(document).ready( function() { } }); /* }}} */ + $('body').on('click', '#clipboard-float', function(ev) { /* {{{ */ + ev.preventDefault(); + ev.stopPropagation(); + $('#clipboard-container').toggleClass('clipboard-container'); + }); /* }}} */ + $('body').on('click', 'a.addtoclipboard', function(ev) { /* {{{ */ ev.preventDefault(); ev.stopPropagation(); @@ -762,7 +768,7 @@ $(document).ready(function() { /* {{{ */ if(target_type == 'folder') { var files = e.originalEvent.dataTransfer.files; if(files.length > 0) { - console.log('Drop '+files.length+' files on '+target_type+' '+target_id); +// console.log('Drop '+files.length+' files on '+target_type+' '+target_id); SeedDMSUpload.handleFileUpload(files,$(e.currentTarget),$('div.statusbar-container h1')/*$(e.currentTarget).find("span")*/); } else { var source_info = JSON.parse(e.originalEvent.dataTransfer.getData("text")); @@ -863,14 +869,14 @@ $(document).ready(function() { /* {{{ */ } else if(target_type == 'document') { var files = e.originalEvent.dataTransfer.files; if(files.length > 0) { - console.log('Drop '+files.length+' files on '+target_type+' '+target_id); +// console.log('Drop '+files.length+' files on '+target_type+' '+target_id); SeedDMSUpload.handleFileUpload(files,$(e.currentTarget),$('div.statusbar-container h1')/*$(e.currentTarget).find("span")*/); } else { var source_info = JSON.parse(e.originalEvent.dataTransfer.getData("text")); source_type = source_info.type; source_id = source_info.id; formtoken = source_info.formtoken; - console.log('Drop '+source_type+' '+source_id+' on '+target_type+' '+target_id); +// console.log('Drop '+source_type+' '+source_id+' on '+target_type+' '+target_id); if(source_type == 'document') { if(source_id != target_id) { bootbox.dialog(trans.confirm_transfer_link_document, [{ diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index a35a62da2..8126bc1a3 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -464,7 +464,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } if($this->params['enableclipboard']) { echo "
"; } @@ -2086,12 +2086,14 @@ $(function() { * @param array clipboard */ function printClipboard($clipboard, $previewer){ /* {{{ */ - $this->contentHeading(getMLText("clipboard"), true); + echo "