mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add attribute 'data-uploadformtoken' to document list entry
This commit is contained in:
parent
484a95029c
commit
71d5970ef0
|
@ -3020,7 +3020,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
*/
|
*/
|
||||||
function documentListRowStart($document, $class='') { /* {{{ */
|
function documentListRowStart($document, $class='') { /* {{{ */
|
||||||
$docID = $document->getID();
|
$docID = $document->getID();
|
||||||
return "<tr id=\"table-row-document-".$docID."\" data-target-id=\"".$docID."\" class=\"table-row-document droptarget ".($class ? ' '.$class : '')."\" data-droptarget=\"document_".$docID."\" rel=\"document_".$docID."\" formtoken=\"".createFormKey('')."\" draggable=\"true\" data-name=\"".htmlspecialchars($document->getName(), ENT_QUOTES)."\">";
|
return "<tr id=\"table-row-document-".$docID."\" data-target-id=\"".$docID."\" class=\"table-row-document droptarget ".($class ? ' '.$class : '')."\" data-droptarget=\"document_".$docID."\" rel=\"document_".$docID."\" formtoken=\"".createFormKey('')."\" data-uploadformtoken=\"".createFormKey('')."\" draggable=\"true\" data-name=\"".htmlspecialchars($document->getName(), ENT_QUOTES)."\">";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function documentListRowEnd($document) { /* {{{ */
|
function documentListRowEnd($document) { /* {{{ */
|
||||||
|
|
|
@ -3095,7 +3095,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
||||||
$class = 'table-'.$class;
|
$class = 'table-'.$class;
|
||||||
}
|
}
|
||||||
$docID = $document->getID();
|
$docID = $document->getID();
|
||||||
return "<tr id=\"table-row-document-".$docID."\" data-target-id=\"".$docID."\" class=\"table-row-document droptarget ".($class ? ' '.$class : '')."\" data-droptarget=\"document_".$docID."\" rel=\"document_".$docID."\" formtoken=\"".createFormKey('')."\" draggable=\"true\" data-name=\"".htmlspecialchars($document->getName(), ENT_QUOTES)."\">";
|
return "<tr id=\"table-row-document-".$docID."\" data-target-id=\"".$docID."\" class=\"table-row-document droptarget ".($class ? ' '.$class : '')."\" data-droptarget=\"document_".$docID."\" rel=\"document_".$docID."\" formtoken=\"".createFormKey('')."\" data-uploadformtoken=\"".createFormKey('')."\" draggable=\"true\" data-name=\"".htmlspecialchars($document->getName(), ENT_QUOTES)."\">";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function documentListRowEnd($document) { /* {{{ */
|
function documentListRowEnd($document) { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user