mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
1085401ccf
|
@ -280,6 +280,8 @@
|
||||||
- fix creating preview image of file in drop folder if it contains
|
- fix creating preview image of file in drop folder if it contains
|
||||||
special chars
|
special chars
|
||||||
- show fileѕ and folders in dropfolder dir recursively
|
- show fileѕ and folders in dropfolder dir recursively
|
||||||
|
- fix 'Add to clipboard' menu item in bootstrap theme
|
||||||
|
- open confirm box when changing category in batch operation
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.32
|
Changes in version 5.1.32
|
||||||
|
|
|
@ -136,8 +136,8 @@ video/mp4
|
||||||
This will take 12th frame of a video and converts into a png. It requires
|
This will take 12th frame of a video and converts into a png. It requires
|
||||||
ffmpeg to be installed.
|
ffmpeg to be installed.
|
||||||
|
|
||||||
convert -resize %wx '%f[12]' 'png:%o'
|
convert -resize %wx "%f[12]" "png:%o"
|
||||||
|
|
||||||
audio/mpeg
|
audio/mpeg
|
||||||
|
|
||||||
sox '%f' -n spectrogram -x 600 -Y 550 -r -l -o - | convert -resize %wx png:- 'png:%o'
|
sox "%f" -n spectrogram -x 600 -Y 550 -r -l -o - | convert -resize %wx png:- "png:%o"
|
||||||
|
|
|
@ -680,7 +680,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if(!empty($submenuitem['divider'])) {
|
if(!empty($submenuitem['divider'])) {
|
||||||
$content .= " <li class=\"divider\"></li>\n";
|
$content .= " <li class=\"divider\"></li>\n";
|
||||||
} else {
|
} else {
|
||||||
$content .= "<li><a".(isset($menuitem['link']) ? " href=\"".$menuitem['link']."\"" : "").(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '');
|
$content .= "<li><a".(isset($menuitem['class']) ? " class=\"".$menuitem['class']."\"" : "").(isset($menuitem['link']) ? " href=\"".$menuitem['link']."\"" : "").(isset($menuitem['target']) ? ' target="'.$menuitem['target'].'"' : '');
|
||||||
if(!empty($menuitem['attributes']))
|
if(!empty($menuitem['attributes']))
|
||||||
foreach($menuitem['attributes'] as $attr)
|
foreach($menuitem['attributes'] as $attr)
|
||||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||||
|
|
|
@ -54,14 +54,12 @@ class SeedDMS_View_Search extends SeedDMS_Theme_Style {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
$('#export').on('click', function(e) {
|
$('#export').on('click', function(ev) {
|
||||||
e.preventDefault();
|
ev.preventDefault();
|
||||||
var url = "";
|
ev.stopPropagation();
|
||||||
url = $(this).attr('href')+'&includecontent='+($('#includecontent').prop('checked') ? '1' : '0');
|
var url = $(this).attr('href')+'&includecontent='+($('#includecontent').prop('checked') ? '1' : '0');
|
||||||
|
|
||||||
var inputs = $('input[name^=\"marks\"]');
|
|
||||||
var values = {};
|
var values = {};
|
||||||
inputs.each(function() {
|
$('input[name^=\"marks\"]').each(function() {
|
||||||
if(this.checked)
|
if(this.checked)
|
||||||
values[this.name] = 1;
|
values[this.name] = 1;
|
||||||
});
|
});
|
||||||
|
@ -69,83 +67,46 @@ $(document).ready( function() {
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#changecategory').on('click', function(e) {
|
$('#changecategory').on('click', function(ev) {
|
||||||
e.preventDefault();
|
ev.preventDefault();
|
||||||
var url = "";
|
ev.stopPropagation();
|
||||||
url = $(this).attr('href')+'&changecategory='+$('#batchcategory').val()+'&removecategory='+($('#removecategory').prop('checked') ? '1' : '0');
|
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
||||||
var inputs = $('input[name^=\"marks\"]');
|
var url = $(this).attr('href')+'&changecategory='+$('#batchcategory').val()+'&removecategory='+($('#removecategory').prop('checked') ? '1' : '0');
|
||||||
var values = {};
|
var values = {};
|
||||||
inputs.each(function() {
|
$('input[name^=\"marks\"]').each(function() {
|
||||||
if(this.checked)
|
if(this.checked)
|
||||||
values[this.name] = 1;
|
values[this.name] = 1;
|
||||||
});
|
});
|
||||||
url += '&'+$.param(values);
|
url += '&'+$.param(values);
|
||||||
window.location.href = url;
|
if($('#batchcategory').val() && Object.keys(values).length > 0) {
|
||||||
|
SeedDMSBox.redirect(url, {
|
||||||
|
'message': confirmmsg,
|
||||||
|
'cancelLabel': '<?= getMLText("cancel") ?>',
|
||||||
|
'confirmLabel': '<i class="fa fa-user"></i> <?= getMLText("batch_change_category") ?>'
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
<?php if($this->getParam('theme') !== 'bootstrap4'): ?>
|
|
||||||
$('body').on('click', 'a.change-owner-btn', function(ev){
|
$('body').on('click', 'a.change-owner-btn', function(ev){
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
||||||
href = $(ev.currentTarget).attr('href');
|
href = $(ev.currentTarget).attr('href');
|
||||||
bootbox.dialog(confirmmsg, [{
|
var url = href+'&newowner='+($('#newowner').val());
|
||||||
"label" : "<i class='fa fa-user'></i> <?= getMLText("batch_change_owner") ?>",
|
var values = {};
|
||||||
"class" : "btn-danger",
|
$('input[name^=\"marks\"]').each(function() {
|
||||||
"callback": function() {
|
if(this.checked)
|
||||||
var url = "";
|
values[this.name] = 1;
|
||||||
url = href+'&newowner='+($('#newowner').val());
|
|
||||||
var inputs = $('input[name^=\"marks\"]');
|
|
||||||
var values = {};
|
|
||||||
inputs.each(function() {
|
|
||||||
if(this.checked)
|
|
||||||
values[this.name] = 1;
|
|
||||||
});
|
|
||||||
url += '&'+$.param(values);
|
|
||||||
window.location.href = url;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
"label" : "<?= getMLText("cancel") ?>",
|
|
||||||
"class" : "btn-cancel",
|
|
||||||
"callback": function() {
|
|
||||||
}
|
|
||||||
}]);
|
|
||||||
});
|
|
||||||
<?php else: ?>
|
|
||||||
$('body').on('click', 'a.change-owner-btn', function(ev){
|
|
||||||
ev.preventDefault();
|
|
||||||
ev.stopPropagation();
|
|
||||||
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
|
|
||||||
href = $(ev.currentTarget).attr('href');
|
|
||||||
bootbox.confirm({
|
|
||||||
"message": confirmmsg,
|
|
||||||
"buttons": {
|
|
||||||
"confirm": {
|
|
||||||
"label" : "<i class='fa fa-user'></i> <?= getMLText("batch_change_owner") ?>",
|
|
||||||
"className" : "btn-danger",
|
|
||||||
},
|
|
||||||
"cancel": {
|
|
||||||
"label" : " <?= getMLText("cancel") ?>",
|
|
||||||
"className" : "btn-secondary",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"callback": function(result) {
|
|
||||||
if(result) {
|
|
||||||
var url = "";
|
|
||||||
url = href+'&newowner='+($('#newowner').val());
|
|
||||||
var inputs = $('input[name^=\"marks\"]');
|
|
||||||
var values = {};
|
|
||||||
inputs.each(function() {
|
|
||||||
if(this.checked)
|
|
||||||
values[this.name] = 1;
|
|
||||||
});
|
|
||||||
url += '&'+$.param(values);
|
|
||||||
window.location.href = url;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
url += '&'+$.param(values);
|
||||||
|
if($('#newowner').val() && Object.keys(values).length > 0) {
|
||||||
|
SeedDMSBox.redirect(url, {
|
||||||
|
'message': confirmmsg,
|
||||||
|
'cancelLabel': '<?= getMLText("cancel") ?>',
|
||||||
|
'confirmLabel': '<i class="fa fa-user"></i> <?= getMLText("batch_change_owner") ?>'
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
<?php endif; ?>
|
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
// $this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
|
@ -1405,7 +1366,6 @@ $(document).ready(function() {
|
||||||
ob_start();
|
ob_start();
|
||||||
$users = $dms->getAllUsers();
|
$users = $dms->getAllUsers();
|
||||||
$options = array();
|
$options = array();
|
||||||
$options[] = array("-1", getMLText("choose_user"));
|
|
||||||
foreach ($users as $currUser) {
|
foreach ($users as $currUser) {
|
||||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), false, array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), false, array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
|
||||||
}
|
}
|
||||||
|
@ -1416,6 +1376,7 @@ $(document).ready(function() {
|
||||||
'id'=>'newowner',
|
'id'=>'newowner',
|
||||||
'class'=>'chzn-select',
|
'class'=>'chzn-select',
|
||||||
'options'=>$options,
|
'options'=>$options,
|
||||||
|
'allow_empty'=>true,
|
||||||
'placeholder'=>getMLText('select_users'),
|
'placeholder'=>getMLText('select_users'),
|
||||||
'attributes'=>array(array('style', 'width: 100%;'))
|
'attributes'=>array(array('style', 'width: 100%;'))
|
||||||
)
|
)
|
||||||
|
@ -1431,7 +1392,6 @@ $(document).ready(function() {
|
||||||
$cats = $dms->getDocumentCategories();
|
$cats = $dms->getDocumentCategories();
|
||||||
if($cats) {
|
if($cats) {
|
||||||
$options = array();
|
$options = array();
|
||||||
$options[] = array("-1", getMLText("choose_category"));
|
|
||||||
foreach ($cats as $currcat) {
|
foreach ($cats as $currcat) {
|
||||||
$options[] = array($currcat->getID(), htmlspecialchars($currcat->getName()), false);
|
$options[] = array($currcat->getID(), htmlspecialchars($currcat->getName()), false);
|
||||||
}
|
}
|
||||||
|
@ -1443,6 +1403,7 @@ $(document).ready(function() {
|
||||||
'class'=>'chzn-select',
|
'class'=>'chzn-select',
|
||||||
'options'=>$options,
|
'options'=>$options,
|
||||||
'multiple'=>false,
|
'multiple'=>false,
|
||||||
|
'allow_empty'=>true,
|
||||||
'placeholder'=>getMLText('select_category'),
|
'placeholder'=>getMLText('select_category'),
|
||||||
'attributes'=>array(array('style', 'width: 100%;'))
|
'attributes'=>array(array('style', 'width: 100%;'))
|
||||||
)
|
)
|
||||||
|
@ -1457,7 +1418,7 @@ $(document).ready(function() {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
print $this->html_link('Search', array_merge($_GET, array('action'=>'changecategory')), array('class'=>'btn btn-primary change-category-btn mt-4', 'id'=>'changecategory'), "<i class=\"fa fa-user\"></i> ".getMLText("batch_change_category"), false, true)."\n";
|
print $this->html_link('Search', array_merge($_GET, array('action'=>'changecategory')), array('class'=>'btn btn-primary change-category-btn mt-4', 'confirmmsg'=>htmlspecialchars(getMLText("confirm_change_category", array ()), ENT_QUOTES), 'id'=>'changecategory'), "<i class=\"fa fa-user\"></i> ".getMLText("batch_change_category"), false, true)."\n";
|
||||||
|
|
||||||
$content = ob_get_clean();
|
$content = ob_get_clean();
|
||||||
$this->printAccordion(getMLText('batch_change_category'), $content);
|
$this->printAccordion(getMLText('batch_change_category'), $content);
|
||||||
|
|
|
@ -1542,3 +1542,41 @@ $(document).ready(function() { /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}( window.SeedDMSAjax = window.SeedDMSAjax || {}, jQuery )); /* }}} */
|
}( window.SeedDMSAjax = window.SeedDMSAjax || {}, jQuery )); /* }}} */
|
||||||
|
|
||||||
|
(function( SeedDMSBox, $, undefined ) { /* {{{ */
|
||||||
|
/* Open dialog box and
|
||||||
|
* redirect to the given url if confirm was pressed
|
||||||
|
*/
|
||||||
|
SeedDMSBox.redirect = function(url, boxparams) {
|
||||||
|
bootbox.dialog(boxparams.message, [{
|
||||||
|
"label" : boxparams.confirmLabel,
|
||||||
|
"class" : "btn-danger",
|
||||||
|
"callback": function() {
|
||||||
|
window.location.href = url;
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"label" : boxparams.cancelLabel,
|
||||||
|
"class" : "btn-cancel",
|
||||||
|
"callback": function() {
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Open confirm box and
|
||||||
|
* calls the callback if the confirm button was pressed
|
||||||
|
*/
|
||||||
|
SeedDMSBox.callback = function(callback, boxparams) {
|
||||||
|
bootbox.dialog(boxparams.message, [{
|
||||||
|
"label" : boxparams.confirmLabel,
|
||||||
|
"class" : "btn-danger",
|
||||||
|
"callback": function() {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"label" : boxparams.cancelLabel,
|
||||||
|
"class" : "btn-cancel",
|
||||||
|
"callback": function() {
|
||||||
|
}
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
}( window.SeedDMSBox = window.SeedDMSBox || {}, jQuery )); /* }}} */
|
||||||
|
|
|
@ -1598,3 +1598,53 @@ $(document).ready(function() { /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}( window.SeedDMSAjax = window.SeedDMSAjax || {}, jQuery )); /* }}} */
|
}( window.SeedDMSAjax = window.SeedDMSAjax || {}, jQuery )); /* }}} */
|
||||||
|
|
||||||
|
(function( SeedDMSBox, $, undefined ) { /* {{{ */
|
||||||
|
/* Open confirm box (which has just one callback) and
|
||||||
|
* redirect to the given url if confirm was pressed
|
||||||
|
*/
|
||||||
|
SeedDMSBox.redirect = function(url, boxparams) {
|
||||||
|
bootbox.confirm({
|
||||||
|
"message": boxparams.message,
|
||||||
|
"buttons": {
|
||||||
|
"confirm": {
|
||||||
|
"label" : boxparams.confirmLabel,
|
||||||
|
"className" : "btn-danger",
|
||||||
|
},
|
||||||
|
"cancel": {
|
||||||
|
"label" : boxparams.cancelLabel,
|
||||||
|
"className" : "btn-secondary",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"callback": function(result) {
|
||||||
|
if(result) {
|
||||||
|
window.location.href = url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Open confirm box (which has just one callback) and
|
||||||
|
* calls the callback if the confirm button was pressed
|
||||||
|
*/
|
||||||
|
SeedDMSBox.callback = function(callback, boxparams) {
|
||||||
|
bootbox.confirm({
|
||||||
|
"message": boxparams.message,
|
||||||
|
"buttons": {
|
||||||
|
"confirm": {
|
||||||
|
"label" : boxparams.confirmLabel,
|
||||||
|
"className" : "btn-danger",
|
||||||
|
},
|
||||||
|
"cancel": {
|
||||||
|
"label" : boxparams.cancelLabel,
|
||||||
|
"className" : "btn-secondary",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"callback": function(result) {
|
||||||
|
if(result) {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}( window.SeedDMSBox = window.SeedDMSBox || {}, jQuery )); /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user