mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
user md5 of formname and form for formid in folder chooser
This commit is contained in:
parent
8638858d05
commit
22fa26bdb7
|
@ -1241,7 +1241,7 @@ function folderSelected<?php echo $formName ?>(id, name) {
|
||||||
function getFolderChooserHtml($form, $accessMode, $exclude = -1, $default = false, $formname = '') { /* {{{ */
|
function getFolderChooserHtml($form, $accessMode, $exclude = -1, $default = false, $formname = '') { /* {{{ */
|
||||||
if(!$formname)
|
if(!$formname)
|
||||||
$formname = "targetid";
|
$formname = "targetid";
|
||||||
$formid = $formname.$form;
|
$formid = md5($formname.$form);
|
||||||
$content = '';
|
$content = '';
|
||||||
$content .= "<input type=\"hidden\" id=\"".$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 .= "<div class=\"input-append\">\n";
|
||||||
|
@ -1273,7 +1273,7 @@ function folderSelected<?php echo $formName ?>(id, name) {
|
||||||
function printFolderChooserJs($form, $formname='') { /* {{{ */
|
function printFolderChooserJs($form, $formname='') { /* {{{ */
|
||||||
if(!$formname)
|
if(!$formname)
|
||||||
$formname = "targetid";
|
$formname = "targetid";
|
||||||
$formid = $formname.$form;
|
$formid = md5($formname.$form);
|
||||||
?>
|
?>
|
||||||
function folderSelected<?php echo $form ?>(id, name) {
|
function folderSelected<?php echo $form ?>(id, name) {
|
||||||
$('#<?php echo $formid ?>').val(id);
|
$('#<?php echo $formid ?>').val(id);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user