mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
431a2e581c
|
@ -82,13 +82,13 @@ $(document).ready(function() {
|
||||||
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
|
||||||
|
|
||||||
$this->contentHeading(getMLText("edit_comment"));
|
$this->contentHeading(getMLText("edit_comment"));
|
||||||
$this->contentContainerStart();
|
|
||||||
?>
|
?>
|
||||||
<form class="form-horizontal" action="../op/op.EditComment.php" id="form1" name="form1" method="post">
|
<form class="form-horizontal" action="../op/op.EditComment.php" id="form1" name="form1" method="post">
|
||||||
<?php echo createHiddenFieldWithKey('editcomment'); ?>
|
<?php echo createHiddenFieldWithKey('editcomment'); ?>
|
||||||
<input type="Hidden" name="documentid" value="<?php print $document->getID();?>">
|
<input type="Hidden" name="documentid" value="<?php print $document->getID();?>">
|
||||||
<input type="Hidden" name="version" value="<?php print $version->getVersion();?>">
|
<input type="Hidden" name="version" value="<?php print $version->getVersion();?>">
|
||||||
<?php
|
<?php
|
||||||
|
$this->contentContainerStart();
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("comment"),
|
getMLText("comment"),
|
||||||
array(
|
array(
|
||||||
|
@ -99,11 +99,11 @@ $(document).ready(function() {
|
||||||
'value'=>htmlspecialchars($version->getComment())
|
'value'=>htmlspecialchars($version->getComment())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$this->contentContainerEnd();
|
||||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
|
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerEnd();
|
|
||||||
$this->contentEnd();
|
$this->contentEnd();
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -80,8 +80,6 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$this->contentHeading(getMLText("change_status"));
|
$this->contentHeading(getMLText("change_status"));
|
||||||
|
|
||||||
$this->contentContainerStart();
|
|
||||||
|
|
||||||
// Display the Review form.
|
// Display the Review form.
|
||||||
?>
|
?>
|
||||||
<form class="form-horizontal" method="post" action="../op/op.OverrideContentStatus.php" id="form1" name="form1">
|
<form class="form-horizontal" method="post" action="../op/op.OverrideContentStatus.php" id="form1" name="form1">
|
||||||
|
@ -89,6 +87,7 @@ $(document).ready(function() {
|
||||||
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
||||||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||||
<?php
|
<?php
|
||||||
|
$this->contentContainerStart();
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("comment"),
|
getMLText("comment"),
|
||||||
array(
|
array(
|
||||||
|
@ -115,11 +114,11 @@ $(document).ready(function() {
|
||||||
'options'=>$options,
|
'options'=>$options,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$this->contentContainerEnd();
|
||||||
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('update'));
|
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('update'));
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
$this->contentContainerEnd();
|
|
||||||
$this->contentEnd();
|
$this->contentEnd();
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -1733,7 +1733,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
print "<td><ul class=\"unstyled\">\n";
|
print "<td><ul class=\"actions unstyled\">\n";
|
||||||
print "<li>".htmlspecialchars($file->getName())."</li>\n";
|
print "<li>".htmlspecialchars($file->getName())."</li>\n";
|
||||||
if($file->getName() != $file->getOriginalFileName())
|
if($file->getName() != $file->getOriginalFileName())
|
||||||
print "<li>".htmlspecialchars($file->getOriginalFileName())."</li>\n";
|
print "<li>".htmlspecialchars($file->getOriginalFileName())."</li>\n";
|
||||||
|
|
|
@ -47,47 +47,7 @@ function treeDocumentSelected(formid, nodeid, nodename) {
|
||||||
$('#docChooser'+formid).modal('hide');
|
$('#docChooser'+formid).modal('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready( function() {
|
function initMost() {
|
||||||
// $('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
|
|
||||||
$('body').on('click', '.dropdown-menu a.dropdown-toggle', function (e) {
|
|
||||||
if (!$(this).next().hasClass('show')) {
|
|
||||||
$(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
|
|
||||||
}
|
|
||||||
var $subMenu = $(this).next(".dropdown-menu");
|
|
||||||
$subMenu.toggleClass('show');
|
|
||||||
|
|
||||||
|
|
||||||
$(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
|
|
||||||
$('.dropdown-submenu .show').removeClass("show");
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
/* close popovers when clicking somewhere except in the popover or the
|
|
||||||
* remove icon
|
|
||||||
*/
|
|
||||||
$('html').on('click', function(e) {
|
|
||||||
if (typeof $(e.target).data('original-title') == 'undefined' && !$(e.target).parents().is('.popover.in') && !$(e.target).is('.fa fa-remove')) {
|
|
||||||
$('[data-original-title]').popover('hide');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('body').on('hidden', '.modal', function () {
|
|
||||||
$(this).removeData('modal');
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Bootstrap 4 does not support to the remote loading of the modal content
|
|
||||||
* anymore. This adds it by using jquery.
|
|
||||||
*/
|
|
||||||
$('body').on('click', '[data-toggle="modal"]', function(ev){
|
|
||||||
ev.preventDefault();
|
|
||||||
$($(this).data("target")+' .modal-body').load($(this).data("remote"));
|
|
||||||
});
|
|
||||||
|
|
||||||
// $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
|
|
||||||
|
|
||||||
$('.datepicker, #expirationdate, #createstartdate, #createenddate, #expirationstartdate, #expirationenddate')
|
$('.datepicker, #expirationdate, #createstartdate, #createenddate, #expirationstartdate, #expirationenddate')
|
||||||
.datepicker({todayHighlight: true, toggleActive: true, autoclose: "true"})
|
.datepicker({todayHighlight: true, toggleActive: true, autoclose: "true"})
|
||||||
/*
|
/*
|
||||||
|
@ -282,6 +242,50 @@ $(document).ready( function() {
|
||||||
return '<i class="fa fa-folder-o"></i> ' + strarr[1].replace(/</g, '<');
|
return '<i class="fa fa-folder-o"></i> ' + strarr[1].replace(/</g, '<');
|
||||||
}
|
}
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready( function() {
|
||||||
|
// $('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
|
||||||
|
$('body').on('click', '.dropdown-menu a.dropdown-toggle', function (e) {
|
||||||
|
if (!$(this).next().hasClass('show')) {
|
||||||
|
$(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
|
||||||
|
}
|
||||||
|
var $subMenu = $(this).next(".dropdown-menu");
|
||||||
|
$subMenu.toggleClass('show');
|
||||||
|
|
||||||
|
|
||||||
|
$(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
|
||||||
|
$('.dropdown-submenu .show').removeClass("show");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
/* close popovers when clicking somewhere except in the popover or the
|
||||||
|
* remove icon
|
||||||
|
*/
|
||||||
|
$('html').on('click', function(e) {
|
||||||
|
if (typeof $(e.target).data('original-title') == 'undefined' && !$(e.target).parents().is('.popover.in') && !$(e.target).is('.fa fa-remove')) {
|
||||||
|
$('[data-original-title]').popover('hide');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('body').on('hidden', '.modal', function () {
|
||||||
|
$(this).removeData('modal');
|
||||||
|
});
|
||||||
|
|
||||||
|
/* Bootstrap 4 does not support to the remote loading of the modal content
|
||||||
|
* anymore. This adds it by using jquery.
|
||||||
|
*/
|
||||||
|
$('body').on('click', '[data-toggle="modal"]', function(ev){
|
||||||
|
ev.preventDefault();
|
||||||
|
$($(this).data("target")+' .modal-body').load($(this).data("remote"));
|
||||||
|
});
|
||||||
|
|
||||||
|
// $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
|
||||||
|
|
||||||
|
initMost();
|
||||||
|
|
||||||
$('body').on('click', '[id^=clearfolder]', function(ev) { /* {{{ */
|
$('body').on('click', '[id^=clearfolder]', function(ev) { /* {{{ */
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
@ -509,32 +513,13 @@ $(document).ready( function() {
|
||||||
element.prepend('<div style="position: _absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: 200px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
element.prepend('<div style="position: _absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: 200px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
element.html(data);
|
element.html(data);
|
||||||
$(".chzn-select").select2({
|
|
||||||
theme: "bootstrap4",
|
|
||||||
width: '100%',
|
|
||||||
templateResult: chzn_template_func//,
|
|
||||||
//templateSelection: chzn_template_func
|
|
||||||
});
|
|
||||||
$(".pwd").passStrength({ /* {{{ */
|
|
||||||
url: "../op/op.Ajax.php",
|
|
||||||
onChange: function(data, target) {
|
|
||||||
pwsp = 100*data.score;
|
|
||||||
$('#'+target+' div.bar').width(pwsp+'%');
|
|
||||||
if(data.ok) {
|
|
||||||
$('#'+target+' div.bar').removeClass('bg-danger');
|
|
||||||
$('#'+target+' div.bar').addClass('bg-success');
|
|
||||||
} else {
|
|
||||||
$('#'+target+' div.bar').removeClass('bg-success');
|
|
||||||
$('#'+target+' div.bar').addClass('bg-danger');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}); /* }}} */
|
|
||||||
if(afterload) {
|
if(afterload) {
|
||||||
var func = eval(afterload);
|
var func = eval(afterload);
|
||||||
if(typeof func === "function"){
|
if(typeof func === "function"){
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
initMost();
|
||||||
});
|
});
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
||||||
|
@ -576,26 +561,6 @@ $(document).ready( function() {
|
||||||
element.prepend('<div style="position: absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: '+element.height()+'px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
element.prepend('<div style="position: absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: '+element.height()+'px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
element.html(data);
|
element.html(data);
|
||||||
$(".chzn-select").select2({
|
|
||||||
theme: "bootstrap4",
|
|
||||||
width: '100%',
|
|
||||||
templateResult: chzn_template_func//,
|
|
||||||
//templateSelection: chzn_template_func
|
|
||||||
});
|
|
||||||
$(".pwd").passStrength({ /* {{{ */
|
|
||||||
url: "../op/op.Ajax.php",
|
|
||||||
onChange: function(data, target) {
|
|
||||||
pwsp = 100*data.score;
|
|
||||||
$('#'+target+' div.bar').width(pwsp+'%');
|
|
||||||
if(data.ok) {
|
|
||||||
$('#'+target+' div.bar').removeClass('bg-danger');
|
|
||||||
$('#'+target+' div.bar').addClass('bg-success');
|
|
||||||
} else {
|
|
||||||
$('#'+target+' div.bar').removeClass('bg-success');
|
|
||||||
$('#'+target+' div.bar').addClass('bg-danger');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}); /* }}} */
|
|
||||||
if(callback)
|
if(callback)
|
||||||
callback.call();
|
callback.call();
|
||||||
if(afterload) {
|
if(afterload) {
|
||||||
|
@ -604,6 +569,7 @@ $(document).ready( function() {
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
initMost();
|
||||||
});
|
});
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user