mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix selection of documents/folders
This commit is contained in:
parent
6d7c86ffe9
commit
245a103b35
|
@ -7,6 +7,7 @@
|
|||
- import of users does not issue an error if a group column isn't set
|
||||
- removing a document version will not remove attachments of the document anymore
|
||||
- make document details page like like view document page
|
||||
- fix selection of documents/folders
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.19
|
||||
|
|
|
@ -36,13 +36,13 @@ function escapeHtml(text) {
|
|||
}
|
||||
|
||||
function treeFolderSelected(formid, nodeid, nodename) {
|
||||
$('#targetid'+formid).val(nodeid);
|
||||
$('#'+formid).val(nodeid);
|
||||
$('#choosefoldersearch'+formid).val(nodename);
|
||||
$('#folderChooser'+formid).modal('hide');
|
||||
}
|
||||
|
||||
function treeDocumentSelected(formid, nodeid, nodename) {
|
||||
$('#docid'+formid).val(nodeid);
|
||||
$('#'+formid).val(nodeid);
|
||||
$('#choosedocsearch'+formid).val(nodename);
|
||||
$('#docChooser'+formid).modal('hide');
|
||||
}
|
||||
|
|
|
@ -1204,7 +1204,7 @@ $(document).ready(function() {
|
|||
$formid = md5($formname.$form);
|
||||
|
||||
$content = '';
|
||||
$content .= "<input type=\"hidden\" id=\"docid".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
||||
$content .= "<input type=\"hidden\" id=\"".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
||||
$content .= "<div class=\"input-append\">\n";
|
||||
$content .= "<input type=\"text\" id=\"choosedocsearch".$formid."\" data-target=\"".$formid."\" data-provide=\"typeahead\" name=\"docname".$formid."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" value=\"" . (($default) ? htmlspecialchars($default->getName()) : "") ."\"/>";
|
||||
$content .= "<button type=\"button\" class=\"btn\" id=\"cleardocument".$form."\" data-target=\"".$formid."\"><i class=\"fa fa-remove\"></i></button>";
|
||||
|
@ -1244,7 +1244,7 @@ $(document).ready(function() {
|
|||
$formid = md5($formname.$form);
|
||||
?>
|
||||
function documentSelected<?php echo $formid ?>(id, name) {
|
||||
$('#docid<?php echo $formid ?>').val(id);
|
||||
$('#<?php echo $formid ?>').val(id);
|
||||
$('#choosedocsearch<?php echo $formid ?>').val(name);
|
||||
$('#docChooser<?php echo $formid ?>').modal('hide');
|
||||
}
|
||||
|
@ -1269,7 +1269,7 @@ function folderSelected<?php echo $formid ?>(id, name) {
|
|||
$formname = "targetid";
|
||||
$formid = md5($formname.$form);
|
||||
$content = '';
|
||||
$content .= "<input type=\"hidden\" id=\"targetid".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
||||
$content .= "<input type=\"hidden\" id=\"".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
||||
$content .= "<div class=\"input-append\">\n";
|
||||
$content .= "<input type=\"text\" id=\"choosefoldersearch".$formid."\" data-target=\"".$formid."\" data-provide=\"typeahead\" name=\"targetname".$formid."\" value=\"". (($default) ? htmlspecialchars($default->getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>";
|
||||
$content .= "<button type=\"button\" class=\"btn\" id=\"clearfolder".$formid."\" data-target=\"".$formid."\"><i class=\"fa fa-remove\"></i></button>";
|
||||
|
@ -1311,7 +1311,7 @@ function folderSelected<?php echo $formid ?>(id, name) {
|
|||
$formid = md5($formname.$form);
|
||||
?>
|
||||
function folderSelected<?php echo $formid ?>(id, name) {
|
||||
$('#targetid<?php echo $formid ?>').val(id);
|
||||
$('#<?php echo $formid ?>').val(id);
|
||||
$('#choosefoldersearch<?php echo $formid ?>').val(name);
|
||||
$('#folderChooser<?php echo $formid ?>').modal('hide');
|
||||
}
|
||||
|
@ -1319,7 +1319,7 @@ function folderSelected<?php echo $formid ?>(id, name) {
|
|||
$(document).ready(function() {
|
||||
$('#clearfolder<?php print $formid ?>').click(function(ev) {
|
||||
$('#choosefoldersearch<?php echo $formid ?>').val('');
|
||||
$('#targetid<?php echo $formid ?>').val('');
|
||||
$('#<?php echo $formid ?>').val('');
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user