mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
set data-name for folder/document table rows
This commit is contained in:
parent
ec8f7a1efe
commit
9820d9b7f3
|
@ -2245,7 +2245,7 @@ $(document).ready( function() {
|
|||
*/
|
||||
function documentListRowStart($document, $class='') { /* {{{ */
|
||||
$docID = $document->getID();
|
||||
return "<tr id=\"table-row-document-".$docID."\" class=\"table-row-document droptarget ".($class ? ' '.$class : '')."\" data-droptarget=\"document_".$docID."\" rel=\"document_".$docID."\" formtoken=\"".createFormKey('')."\" draggable=\"true\">";
|
||||
return "<tr id=\"table-row-document-".$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)."\">";
|
||||
} /* }}} */
|
||||
|
||||
function documentListRowEnd($document) { /* {{{ */
|
||||
|
@ -2422,7 +2422,7 @@ $(document).ready( function() {
|
|||
* @return string starting tr tag for a table
|
||||
*/
|
||||
function folderListRowStart($folder, $class='') { /* {{{ */
|
||||
return "<tr id=\"table-row-folder-".$folder->getID()."\" draggable=\"true\" data-droptarget=\"folder_".$folder->getID()."\" rel=\"folder_".$folder->getID()."\" class=\"folder table-row-folder droptarget".($class ? ' '.$class : '')."\" data-uploadformtoken=\"".createFormKey('')."\" formtoken=\"".createFormKey('')."\">";
|
||||
return "<tr id=\"table-row-folder-".$folder->getID()."\" draggable=\"true\" data-droptarget=\"folder_".$folder->getID()."\" rel=\"folder_".$folder->getID()."\" class=\"folder table-row-folder droptarget".($class ? ' '.$class : '')."\" data-uploadformtoken=\"".createFormKey('')."\" formtoken=\"".createFormKey('')."\" data-name=\"".htmlspecialchars($folder->getName(), ENT_QUOTES)."\">";
|
||||
} /* }}} */
|
||||
|
||||
function folderListRowEnd($folder) { /* {{{ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user