mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-29 21:17:22 +00:00
set attribute target in folder chooser pointing the input field storing the folder id
This commit is contained in:
parent
4fccb5fc2b
commit
eabfee8c76
|
@ -783,7 +783,7 @@ function folderSelected<?php echo $formName ?>(id, name) {
|
||||||
$formname = "targetid".$form;
|
$formname = "targetid".$form;
|
||||||
print "<input type=\"hidden\" id=\"".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
print "<input type=\"hidden\" id=\"".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
|
||||||
print "<div class=\"input-append\">\n";
|
print "<div class=\"input-append\">\n";
|
||||||
print "<input type=\"text\" id=\"choosefoldersearch".$form."\" data-provide=\"typeahead\" name=\"targetname".$form."\" value=\"". (($default) ? htmlspecialchars($default->getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" />";
|
print "<input type=\"text\" id=\"choosefoldersearch".$form."\" data-provide=\"typeahead\" name=\"targetname".$form."\" value=\"". (($default) ? htmlspecialchars($default->getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>";
|
||||||
print "<a data-target=\"#folderChooser".$form."\" href=\"../out/out.FolderChooser.php?form=".$form."&mode=".$accessMode."&exclude=".$exclude."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".getMLText("folder")."…</a>\n";
|
print "<a data-target=\"#folderChooser".$form."\" href=\"../out/out.FolderChooser.php?form=".$form."&mode=".$accessMode."&exclude=".$exclude."\" role=\"button\" class=\"btn\" data-toggle=\"modal\">".getMLText("folder")."…</a>\n";
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user